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.
55 lines
1.2 KiB
55 lines
1.2 KiB
4 years ago
|
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") {
|
||
|
dependencies {
|
||
3 years ago
|
api("androidx.appcompat:appcompat:1.3.1")
|
||
4 years ago
|
api("androidx.core:core-ktx:1.3.1")
|
||
|
}
|
||
|
}
|
||
|
named("desktopMain") {
|
||
|
dependencies {
|
||
|
api(compose.desktop.common)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
android {
|
||
3 years ago
|
compileSdk = 30
|
||
4 years ago
|
|
||
|
defaultConfig {
|
||
3 years ago
|
minSdk = 21
|
||
|
targetSdk = 30
|
||
4 years ago
|
}
|
||
|
|
||
|
compileOptions {
|
||
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||
|
}
|
||
|
|
||
|
sourceSets {
|
||
|
named("main") {
|
||
|
manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
||
|
res.srcDirs("src/androidMain/res", "src/commonMain/resources")
|
||
|
}
|
||
|
}
|
||
3 years ago
|
}
|