You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import org.jetbrains.compose.compose
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
|
|
|
kotlin("multiplatform")
|
|
|
|
id("org.jetbrains.compose")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
android()
|
|
|
|
jvm("desktop")
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
named("commonMain") {
|
|
|
|
dependencies {
|
|
|
|
api(compose.runtime)
|
|
|
|
api(compose.foundation)
|
|
|
|
api(compose.material)
|
|
|
|
api(compose.materialIconsExtended)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
named("androidMain") {
|
|
|
|
kotlin.srcDirs("src/jvmMain/kotlin")
|
|
|
|
dependencies {
|
|
|
|
api("androidx.appcompat:appcompat:1.4.1")
|
|
|
|
api("androidx.core:core-ktx:1.7.0")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
named("desktopMain") {
|
|
|
|
kotlin.srcDirs("src/jvmMain/kotlin")
|
|
|
|
dependencies {
|
|
|
|
api(compose.desktop.common)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion(31)
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion(21)
|
|
|
|
targetSdkVersion(31)
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
named("main") {
|
|
|
|
manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
|
|
res.srcDirs("src/androidMain/res", "src/commonMain/resources")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|