From 03c8a8a59f0ede0d18090f600ff71a1fda08e7ab Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 18 May 2026 09:07:27 +0800 Subject: [PATCH] fix: change jvm("desktop") to jvm() and desktopMain to jvmMain to fix Gradle type-safe accessor issue --- shared/build.gradle.kts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 2a6b42a..930bb7a 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -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) - // } } }