forked from kasem-sm/SlimeKT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.gradle
38 lines (35 loc) · 998 Bytes
/
common.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
// Generic build.gradle for android lib
apply plugin: 'kotlin-android'
android {
compileSdk App.compileSkd
defaultConfig {
minSdk App.minSdk
targetSdk App.targetSdk
vectorDrawables {
useSupportLibrary true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
useIR = true
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.FlowPreview"
freeCompilerArgs += "-Xopt-in=kotlin.Experimental"
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion = Compose.composeCompiler
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}