fix: change jvm("desktop") to jvm() and desktopMain to jvmMain to fix Gradle type-safe accessor issue

This commit is contained in:
yumoqing 2026-05-18 09:07:27 +08:00
parent 45abb011db
commit 03c8a8a59f

View File

@ -10,7 +10,7 @@ plugins {
kotlin {
// Only desktop (macOS) for now
jvm("desktop")
jvm()
// TODO: add back when Android SDK / Xcode is available
// androidTarget()
// listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach { iosTarget ->
@ -38,14 +38,10 @@ kotlin {
implementation(libs.coil.compose)
implementation(libs.coil.network)
}
desktopMain.dependencies {
jvmMain.dependencies {
implementation(compose.desktop.currentOs)
implementation(libs.ktor.client.okhttp)
}
// TODO: add back when iOS target is enabled
// iosMain.dependencies {
// implementation(libs.ktor.client.darwin)
// }
}
}