|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
|
|
|
id("kotlin-multiplatform")
|
|
|
|
id("org.jetbrains.compose")
|
|
|
|
}
|
|
|
|
|
|
|
|
initDeps(project)
|
|
|
|
|
|
|
|
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.3.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 = "11"
|
|
|
|
}
|
|
|
|
}
|