Disable unused iOS targets in build

This commit is contained in:
Olof Hedman
2025-10-15 17:15:14 +02:00
parent 13d58377cb
commit 2c662dbb4c
2 changed files with 27 additions and 14 deletions

View File

@@ -22,6 +22,19 @@ dependencyResolutionManagement {
}
}
buildCache {
local {
isEnabled = true
removeUnusedEntriesAfterDays = 7
}
// Optional: add a remote cache (Gradle Enterprise/HTTP) shared by CI & devs
// remote<HttpBuildCache> {
// url = uri("https://<your-cache>/cache/")
// isPush = true
// isEnabled = true
// }
}
rootProject.name = "Klottr"
include(":app")
include(":shared")

View File

@@ -55,13 +55,13 @@ kotlin {
val xcfName = "shared"
val xcf = XCFramework()
iosX64 {
binaries.framework {
baseName = xcfName
isStatic = true
xcf.add(this)
}
}
// iosX64 {
// binaries.framework {
// baseName = xcfName
// isStatic = true
// xcf.add(this)
// }
// }
iosArm64 {
binaries.framework {
@@ -71,13 +71,13 @@ kotlin {
}
}
iosSimulatorArm64 {
binaries.framework {
baseName = xcfName
isStatic = true
xcf.add(this)
}
}
// iosSimulatorArm64 {
// binaries.framework {
// baseName = xcfName
// isStatic = true
// xcf.add(this)
// }
// }
// Cocoapods is used for 3rd party library dependencies in iOS
cocoapods {