SpotiFlyer/buildSrc/src/main/kotlin/multiplatform-compose-setup.gradle.kts

38 lines
941 B
Plaintext
Raw Normal View History

2021-01-26 13:54:28 +01:00
plugins {
id("com.android.library")
id("kotlin-multiplatform")
id("org.jetbrains.compose")
}
kotlin {
jvm("desktop")
android()
sourceSets {
named("commonMain") {
dependencies {
2021-03-05 20:50:24 +01:00
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
2021-01-26 13:54:28 +01:00
}
}
named("androidMain") {
dependencies {
2021-03-05 20:50:24 +01:00
implementation("androidx.appcompat:appcompat:1.2.0")
implementation(Androidx.core)
2021-01-26 13:54:28 +01:00
}
}
named("desktopMain") {
dependencies {
2021-03-05 20:50:24 +01:00
implementation(compose.desktop.common)
}
}
2021-01-26 13:54:28 +01:00
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
}