|
|
|
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)
|
|
|
|
implementation("io.ktor:ktor-client-core:1.4.1")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
named("androidMain") {
|
|
|
|
dependencies {
|
|
|
|
api("androidx.appcompat:appcompat:1.5.1")
|
|
|
|
api("androidx.core:core-ktx:1.8.0")
|
|
|
|
implementation("io.ktor:ktor-client-cio:1.4.1")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
named("desktopMain") {
|
|
|
|
dependencies {
|
|
|
|
api(compose.desktop.common)
|
|
|
|
implementation("io.ktor:ktor-client-cio:1.4.1")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdk = 32
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = 26
|
|
|
|
targetSdk = 32
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
named("main") {
|
|
|
|
manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
|
|
res.srcDirs("src/androidMain/res")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|