-
Notifications
You must be signed in to change notification settings - Fork 0
/
android.gradle
54 lines (53 loc) · 1.62 KB
/
android.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
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 31
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 21
targetSdkVersion 31
versionCode 1
versionName "0.1.0"
multiDexEnabled true
consumerProguardFiles "consumer-rules.pro"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
stage {
debuggable true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
dataBinding true
}
kotlinOptions {
jvmTarget = "1.8"
}
packagingOptions {
// https://github.com/kotlin/kotlinx.coroutines/blob/master/README.md#using-in-your-projects
exclude "DebugProbesKt.bin"
}
compileOptions {
// sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
// flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
}
lintOptions {
abortOnError true
disable 'TypographyFractions','TypographyQuotes'
}
}