generated from bmc08gt/kotlin-android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
android-library.gradle
46 lines (40 loc) · 1.12 KB
/
android-library.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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: "com.github.ben-manes.versions"
android {
compileSdkVersion androidbuild.compileSdkVersion
defaultConfig {
minSdkVersion androidbuild.minSdkVersion
targetSdkVersion androidbuild.targetSdkVersion
versionCode appInfo.versionCode
versionName appInfo.versionName
testInstrumentationRunner androidbuild.testInstrumentationRunner
}
androidExtensions {
experimental = true
}
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += "-Xjvm-default=compatibility"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
}
}
flavorDimensions "environment"
productFlavors {
staging {
dimension "environment"
}
production {
dimension "environment"
}
}
}