|
|
|
import org.jetbrains.compose.compose
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
|
|
|
id("kotlin-multiplatform")
|
|
|
|
id("org.jetbrains.compose")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm("desktop")
|
|
|
|
android()
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
named("commonMain") {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.runtime)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
named("androidMain") {
|
|
|
|
dependencies {
|
|
|
|
implementation("androidx.appcompat:appcompat:1.1.0")
|
|
|
|
implementation("androidx.core:core-ktx:1.3.1")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
named("desktopMain") {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.desktop.common)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|