-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbase.gradle
41 lines (32 loc) · 875 Bytes
/
base.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
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'kotlin-kapt'
// 通用配置
android {
compileSdkVersion parent.ext.compileSdkVersion
defaultConfig {
minSdkVersion parent.ext.minSdkVersion
targetSdkVersion parent.ext.targetSdkVersion
}
buildFeatures {
dataBinding = true
viewBinding = true
}
compileOptions {
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11
}
// 避免 lint 检测出错时停止构建
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
dependencies {
// kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "androidx.core:core-ktx:$ktx_version"
}