fix: comment out android/iOS targets to fix build on macOS (desktop-only)
This commit is contained in:
parent
bf7827a226
commit
45abb011db
@ -9,14 +9,16 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
androidTarget()
|
// Only desktop (macOS) for now
|
||||||
jvm("desktop")
|
jvm("desktop")
|
||||||
listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach { iosTarget ->
|
// TODO: add back when Android SDK / Xcode is available
|
||||||
iosTarget.binaries.framework {
|
// androidTarget()
|
||||||
baseName = "BricksShared"
|
// listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach { iosTarget ->
|
||||||
isStatic = true
|
// iosTarget.binaries.framework {
|
||||||
}
|
// baseName = "BricksShared"
|
||||||
}
|
// isStatic = true
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
||||||
compilerOptions { freeCompilerArgs.add("-Xexpect-actual-classes") }
|
compilerOptions { freeCompilerArgs.add("-Xexpect-actual-classes") }
|
||||||
@ -40,17 +42,19 @@ kotlin {
|
|||||||
implementation(compose.desktop.currentOs)
|
implementation(compose.desktop.currentOs)
|
||||||
implementation(libs.ktor.client.okhttp)
|
implementation(libs.ktor.client.okhttp)
|
||||||
}
|
}
|
||||||
iosMain.dependencies {
|
// TODO: add back when iOS target is enabled
|
||||||
implementation(libs.ktor.client.darwin)
|
// iosMain.dependencies {
|
||||||
}
|
// implementation(libs.ktor.client.darwin)
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
// TODO: uncomment when androidTarget() is enabled
|
||||||
namespace = "com.bricks.mp"
|
// android {
|
||||||
compileSdk = 35
|
// namespace = "com.bricks.mp"
|
||||||
defaultConfig { minSdk = 24 }
|
// compileSdk = 35
|
||||||
}
|
// defaultConfig { minSdk = 24 }
|
||||||
|
// }
|
||||||
|
|
||||||
compose.desktop {
|
compose.desktop {
|
||||||
application {
|
application {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user