-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathbuild.gradle
43 lines (36 loc) · 1.1 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
def localProperties = new Properties()
localProperties.load(new FileInputStream(rootProject.file("local.properties")))
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath libs.gradle
classpath libs.kotlin.gradle.plugin
classpath libs.protobuf.gradle.plugin
classpath libs.google.services // Google Services plugin
classpath libs.hilt.android.gradle.plugin
// Check if the "isChinaRegion" property exists and what its value is
if (localProperties.getProperty("isChinaRegion", "false") != "true") {
classpath libs.firebase.crashlytics.gradle
}
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
maven { url "https://maven.google.com" }
flatDir {
dirs 'src/main/libs'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}