-
Notifications
You must be signed in to change notification settings - Fork 0
/
androidPluginsSetup.gradle.kts
45 lines (41 loc) · 1.41 KB
/
androidPluginsSetup.gradle.kts
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
import com.android.build.gradle.AppPlugin
import com.android.build.gradle.BaseExtension
import com.android.build.gradle.LibraryPlugin
object Constants {
val javaVersion = JavaVersion.VERSION_11
const val group = "com.well"
const val version = "1.0-SNAPSHOT"
}
subprojects {
plugins.matching { it is AppPlugin || it is LibraryPlugin }.whenPluginAdded {
configure<BaseExtension> {
setCompileSdkVersion(32)
buildToolsVersion = "30.0.3"
defaultConfig {
minSdk = 23
targetSdk = 32
versionCode = 102191720
versionName = Constants.version
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
}
}
compileOptions {
sourceCompatibility = Constants.javaVersion
targetCompatibility = Constants.javaVersion
}
}
}
plugins.withType<org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper> {
plugins.whenPluginAdded {
extensions
.findByType<com.android.build.gradle.LibraryExtension>()
?.apply {
sourceSets["main"]?.manifest?.srcFile("src/androidMain/AndroidManifest.xml")
}
}
}
}
subprojectsConfigurationsResolutionStrategy(ResolutionStrategy.Compose)