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.
50 lines
1.0 KiB
50 lines
1.0 KiB
4 years ago
|
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)
|
||
3 years ago
|
// Needed only for preview.
|
||
|
implementation(compose.preview)
|
||
3 years ago
|
}
|
||
|
}
|
||
4 years ago
|
named("androidMain") {
|
||
|
dependencies {
|
||
2 years ago
|
api("androidx.appcompat:appcompat:1.5.1")
|
||
|
api("androidx.core:core-ktx:1.8.0")
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
android {
|
||
2 years ago
|
compileSdk = 33
|
||
4 years ago
|
|
||
|
defaultConfig {
|
||
2 years ago
|
minSdk = 26
|
||
2 years ago
|
targetSdk = 33
|
||
4 years ago
|
}
|
||
|
|
||
|
compileOptions {
|
||
3 years ago
|
sourceCompatibility = JavaVersion.VERSION_11
|
||
|
targetCompatibility = JavaVersion.VERSION_11
|
||
4 years ago
|
}
|
||
|
|
||
|
sourceSets {
|
||
|
named("main") {
|
||
|
manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
||
|
res.srcDirs("src/androidMain/res")
|
||
|
}
|
||
|
}
|
||
2 years ago
|
}
|