From 2c662dbb4cb42eb7ff60776d10b1a54366798310 Mon Sep 17 00:00:00 2001 From: Olof Hedman Date: Wed, 15 Oct 2025 17:15:14 +0200 Subject: [PATCH] Disable unused iOS targets in build --- settings.gradle.kts | 13 +++++++++++++ shared/build.gradle.kts | 28 ++++++++++++++-------------- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index 0c9b282..a9a0150 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -22,6 +22,19 @@ dependencyResolutionManagement { } } +buildCache { + local { + isEnabled = true + removeUnusedEntriesAfterDays = 7 + } + // Optional: add a remote cache (Gradle Enterprise/HTTP) shared by CI & devs + // remote { + // url = uri("https:///cache/") + // isPush = true + // isEnabled = true + // } +} + rootProject.name = "Klottr" include(":app") include(":shared") diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index aad433c..ab56318 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -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 {