2017-03-09 14:29:23 -06:00
|
|
|
buildscript {
|
2020-08-02 11:29:41 -05:00
|
|
|
ext {
|
2021-03-25 05:07:43 -05:00
|
|
|
kotlin_version = '1.4.32'
|
2021-03-06 06:01:17 -06:00
|
|
|
about_libraries = '8.8.4'
|
2021-02-27 15:49:50 -06:00
|
|
|
hilt_version = "2.33-beta"
|
2020-08-02 11:29:41 -05:00
|
|
|
}
|
2017-03-09 14:29:23 -06:00
|
|
|
repositories {
|
2017-09-10 08:32:45 -05:00
|
|
|
mavenCentral()
|
2018-03-04 05:49:16 -06:00
|
|
|
google()
|
2018-06-08 17:59:39 -05:00
|
|
|
jcenter()
|
2018-03-04 09:53:53 -06:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2020-10-29 07:58:56 -05:00
|
|
|
maven { url "https://developer.huawei.com/repo/" }
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-08-25 17:18:31 -05:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2021-03-19 10:02:28 -05:00
|
|
|
classpath 'com.android.tools.build:gradle:4.1.3'
|
2020-08-02 11:29:41 -05:00
|
|
|
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
|
2021-01-28 14:56:54 -06:00
|
|
|
classpath 'com.google.gms:google-services:4.3.5'
|
2021-03-25 05:03:37 -05:00
|
|
|
classpath 'com.huawei.agconnect:agcp:1.5.1.200'
|
2021-03-01 16:19:31 -06:00
|
|
|
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.1'
|
2020-10-14 18:00:41 -05:00
|
|
|
classpath "com.github.triplet.gradle:play-publisher:2.8.0"
|
2021-04-18 12:34:32 -05:00
|
|
|
classpath "ru.cian:huawei-publish-gradle-plugin:1.2.2"
|
2021-01-28 14:57:53 -06:00
|
|
|
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1"
|
2019-10-03 14:54:16 -05:00
|
|
|
classpath "gradle.plugin.com.star-zero.gradle:githook:1.2.0"
|
2020-08-02 11:29:41 -05:00
|
|
|
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:$about_libraries"
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-23 15:17:13 -05:00
|
|
|
project.ext.preDexLibs = !project.hasProperty("disablePreDex")
|
|
|
|
subprojects {
|
|
|
|
project.plugins.whenPluginAdded { plugin ->
|
|
|
|
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
|
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
|
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-09 14:29:23 -06:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2017-09-10 08:32:45 -05:00
|
|
|
mavenCentral()
|
2018-03-04 05:49:16 -06:00
|
|
|
google()
|
2018-06-08 17:59:39 -05:00
|
|
|
jcenter()
|
2020-10-29 07:58:56 -05:00
|
|
|
maven { url "https://jitpack.io" }
|
|
|
|
maven { url "https://developer.huawei.com/repo/" }
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|