forked from NLLAPPS/NLLStore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commonSettingsAll.gradle
92 lines (74 loc) · 2.61 KB
/
commonSettingsAll.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
apply plugin: libs.plugins.kotlin.android.get().pluginId
apply plugin: libs.plugins.kotlin.ksp.get().pluginId
apply plugin: libs.plugins.kotlin.parcelize.get().pluginId
def libsJavaVersion = libs.versions.javaVersion.get().toString()
def javaVersionEnum = JavaVersion.toVersion(libsJavaVersion)
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(javaVersionEnum.toString().toInteger()))
}
}
android {
buildFeatures {
buildConfig true
viewBinding true
aidl true
}
compileSdk(libs.versions.compileSdkVersion.get().toInteger())
compileOptions {
sourceCompatibility javaVersionEnum
targetCompatibility javaVersionEnum
}
kotlinOptions {
jvmTarget = javaVersionEnum.toString()
}
defaultConfig {
minSdk(libs.versions.minSdkVersion.get().toInteger())
targetSdk(libs.versions.targetSdkVersion.get().toInteger())
versionName(libs.versions.appVersionName.get())
versionCode(libs.versions.appVersionCode.get().toInteger())
vectorDrawables.useSupportLibrary = true
proguardFiles(
getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
)
buildConfigField(
"Integer", "baseVersionCode", "${libs.versions.appVersionCode.get().toInteger()}"
)
}
buildTypes {
release {
minifyEnabled(commonValues.releaseMinifyEnabled)
shrinkResources = commonValues.releaseShrinkResourcesEnabled
}
debug {
debuggable true
//use proguard on dev builds too in order to avoid multidex issue
minifyEnabled(commonValues.debugMinifyEnabled)
shrinkResources = commonValues.debugShrinkResourcesEnabled
}
}
//for google drive rest and onedrive
packaging {
resources {
/* excludes += [
'META-INF/DEPENDENCIES',
'META-INF/LICENSE',
'META-INF/LICENSE.txt',
'META-INF/license.txt',
'META-INF/NOTICE',
'META-INF/NOTICE.txt',
'META-INF/notice.txt',
'META-INF/ASL2.0',
'META-INF/MANIFEST.MF',
'META-INF/atomicfu.kotlin_module',
'META-INF/maven/com.google.guava/guava/pom.properties',
'META-INF/maven/com.google.guava/guava/pom.xml',
'META-INF/jersey-module-version'
]*/
}
}
}
dependencies {
implementation(libs.bundles.coroutinesBundle)
}