From a35e4d383bee5747fe04313136639e50e42979b2 Mon Sep 17 00:00:00 2001 From: Arkadii Ivanov Date: Sun, 2 Jun 2024 20:49:28 +0100 Subject: [PATCH] Export sample iOS framework only for Xcode builds --- sample-mpp-module/build.gradle | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/sample-mpp-module/build.gradle b/sample-mpp-module/build.gradle index 23893ec9d..392323a4e 100644 --- a/sample-mpp-module/build.gradle +++ b/sample-mpp-module/build.gradle @@ -8,20 +8,20 @@ android { } kotlin { - def configureFrameworks = { target -> - target.binaries { - framework { - baseName = "shared" - export project(':reaktive') + if (System.getenv().keySet().contains("XCODE_VERSION_MAJOR")) { + def configureFrameworks = { target -> + target.binaries { + framework { + baseName = "shared" + export project(':reaktive') + } } } - } - configureFrameworks(iosArm64()) - configureFrameworks(iosX64()) - configureFrameworks(iosSimulatorArm64()) - configureFrameworks(macosX64()) - configureFrameworks(macosArm64()) + configureFrameworks(iosArm64()) + configureFrameworks(iosX64()) + configureFrameworks(iosSimulatorArm64()) + } sourceSets { commonMain {