Improvements

try to make it run on Android (finally!)
This commit is contained in:
2024-08-25 21:55:05 +02:00
parent 8399f98d75
commit e5a0a0adb0
8 changed files with 74 additions and 39 deletions

View File

@@ -8,7 +8,7 @@ plugins {
kotlin {
jvmToolchain(libs.versions.jdk.get().toInt())
jvm("desktop")
jvm()
androidTarget()
// @OptIn(ExperimentalWasmDsl::class)
@@ -19,29 +19,33 @@ kotlin {
// }
sourceSets {
val androidMain by getting
val commonTest by getting
commonMain {
dependencies {
api(projects.domain)
commonMain.dependencies {
api(projects.domain)
implementation(compose.components.resources)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
implementation(compose.ui)
implementation(compose.components.uiToolingPreview)
implementation(compose.components.resources)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
implementation(compose.ui)
implementation(compose.components.uiToolingPreview)
// implementation(libs.compose.ui.text.googlefonts)
implementation(libs.logging)
}
androidMain.dependencies {
implementation(libs.androidx.compose.foundation)
implementation(libs.logging)
}
}
commonTest.dependencies {
implementation(libs.kotlin.test)
implementation(libs.atrium)
androidMain {
dependencies {
implementation(libs.androidx.compose.foundation)
}
}
commonTest {
dependencies {
implementation(libs.kotlin.test)
implementation(libs.atrium)
}
}
}
}