Tiago Nunes
03/28/2021, 1:29 AMplugins {
kotlin("multiplatform")
id("com.android.library")
}
group = "me.tnunes"
version = "1.0-SNAPSHOT"
kotlin {
android {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
useIR = true
}
}
}
jvm("webBackend") {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
useIR = true
}
}
}
sourceSets {
val commonMain by getting
val commonTest by getting
val webBackendMain by getting
val webBackendTest by getting
val androidMain by getting {
dependencies {
api("androidx.core:core-ktx:1.3.2")
api("androidx.appcompat:appcompat:1.2.0")
api("androidx.constraintlayout:constraintlayout:2.0.4")
}
}
val androidTest by getting {
dependencies {
implementation("junit:junit:4.13.2")
}
}
}
}
android {
compileSdkVersion(30)
buildToolsVersion("30.0.3")
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdkVersion(23)
targetSdkVersion(30)
}
}