-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
common-android-library.gradle
57 lines (46 loc) · 1.34 KB
/
common-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
47
48
49
50
51
52
53
54
55
56
57
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion rootProject.compileSdkVersion
defaultConfig {
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
versionCode rootProject.appVersionCode
versionName rootProject.appVersionName
consumerProguardFiles "consumer-rules.pro"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
buildTypes {
debug {
debuggable true
}
release {
debuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
java.srcDirs = ['src/main/kotlin']
}
}
flavorDimensions "default"
productFlavors {
production {
dimension "default"
buildConfigField 'String', 'VERSION_NAME', "\"${rootProject.appVersionName}\""
}
dev {
dimension "default"
buildConfigField 'String', 'VERSION_NAME', "\"${rootProject.appVersionName}\""
}
}
buildFeatures.buildConfig = true
}