fix: comment out android/iOS targets to fix build on macOS (desktop-only)

This commit is contained in:
yumoqing 2026-05-18 08:55:03 +08:00
parent bf7827a226
commit 45abb011db

View File

@ -9,14 +9,16 @@ plugins {
}
kotlin {
androidTarget()
// Only desktop (macOS) for now
jvm("desktop")
listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "BricksShared"
isStatic = true
}
}
// TODO: add back when Android SDK / Xcode is available
// androidTarget()
// listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach { iosTarget ->
// iosTarget.binaries.framework {
// baseName = "BricksShared"
// isStatic = true
// }
// }
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions { freeCompilerArgs.add("-Xexpect-actual-classes") }
@ -40,17 +42,19 @@ kotlin {
implementation(compose.desktop.currentOs)
implementation(libs.ktor.client.okhttp)
}
iosMain.dependencies {
implementation(libs.ktor.client.darwin)
}
// TODO: add back when iOS target is enabled
// iosMain.dependencies {
// implementation(libs.ktor.client.darwin)
// }
}
}
android {
namespace = "com.bricks.mp"
compileSdk = 35
defaultConfig { minSdk = 24 }
}
// TODO: uncomment when androidTarget() is enabled
// android {
// namespace = "com.bricks.mp"
// compileSdk = 35
// defaultConfig { minSdk = 24 }
// }
compose.desktop {
application {