fixing clients

new frontend
This commit is contained in:
stefan
2025-09-26 13:14:00 +02:00
parent 94a76e4484
commit 97d0af1b07
11 changed files with 389 additions and 53 deletions
+10 -2
View File
@@ -12,6 +12,7 @@ group = "at.mocode.clients.shared"
version = "1.0.0"
kotlin {
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvm()
js {
browser {
@@ -21,10 +22,17 @@ kotlin {
}
}
if (enableWasm) {
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
wasmJs {
browser()
}
}
jvmToolchain(21)
sourceSets {
val commonMain by getting {
commonMain {
dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
@@ -33,7 +41,7 @@ kotlin {
implementation(compose.components.resources)
}
}
val commonTest by getting {
commonTest {
dependencies {
implementation(libs.kotlin.test)
}
+8 -5
View File
@@ -10,24 +10,27 @@ group = "at.mocode.clients.shared"
version = "1.0.0"
kotlin {
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvm()
js {
browser()
}
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
wasmJs {
browser()
if (enableWasm) {
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
wasmJs {
browser()
}
}
jvmToolchain(21)
sourceSets {
val commonMain by getting {
commonMain {
dependencies {
// No specific dependencies needed for navigation routes
}
}
val commonTest by getting {
commonTest {
dependencies {
implementation(libs.kotlin.test)
}