-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
46 lines (41 loc) · 1.41 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
44
45
46
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.buildConfig = [
'compileSdk': 31,
'minSdk' : 21,
'targetSdk' : 30,
]
repositories {
google()
mavenCentral()
}
dependencies {
classpath libs.android.gradlePlugin
classpath libs.kotlin.gradlePlugin
classpath libs.androidx.navigation.safeArgs.gradlePlugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.39.0'
}
subprojects {
configurations.configureEach {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
// Enable experimental coroutines APIs, including Flow
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.FlowPreview"
freeCompilerArgs += "-Xopt-in=kotlin.time.ExperimentalTime"
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Object propOrDef(String propertyName, Object defaultValue) {
def propertyValue = project.properties[propertyName]
return propertyValue != null ? propertyValue : defaultValue
}