-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathbase.build.gradle
62 lines (55 loc) · 1.86 KB
/
base.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
kapt {
arguments {
arg("AROUTER_MODULE_NAME", project.getName())
}
}
android {
compileSdkVersion rootProject.ext.compileVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
debug {
buildConfigField "boolean", 'IS_DEBUG', 'true'
}
release {
buildConfigField "boolean", 'IS_DEBUG', 'false'
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
dataBinding true
// for view binding :
viewBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
def Depends = [
apis : rootProject.ext.baseBuildDepends.api,
implementations : rootProject.ext.baseBuildDepends.implementations,
kapt : rootProject.ext.baseBuildDepends.kapt,
compileOnly : rootProject.ext.baseBuildDepends.compile,
testImplementations: rootProject.ext.baseBuildDepends.testImpl,
]
Depends.apis.each { api it }
Depends.implementations.each { implementation it }
Depends.kapt.each { kapt it }
Depends.compileOnly.each { compileOnly it }
Depends.testImplementations.each { testImplementation it }
}