diff --git a/build.gradle b/build.gradle index 88804ab9..dbef3af4 100644 --- a/build.gradle +++ b/build.gradle @@ -30,6 +30,8 @@ ext { /* iOS */ iOSIsRealDevice = false + embedBitcodeValue = "marker" // Use "marker" to embed the bitcode marker (for debug builds) +// embedBitcodeValue = "bitcode" // for release binaries /* Android */ diff --git a/common/build.gradle b/common/build.gradle index 0f9dacb5..69a64e34 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -7,6 +7,8 @@ plugins { ext.artifactName = "multiplatform-utils" +def frameworkName = "MultiplatformUtils" + kotlin { jvm { @@ -21,7 +23,9 @@ kotlin { fromPreset(iOSTarget, 'ios') { binaries { framework { - baseName = "MultiplatformUtils" + baseName = frameworkName + + embedBitcode(embedBitcodeValue) } } } diff --git a/fints4k/build.gradle b/fints4k/build.gradle index adf425eb..3df434f4 100644 --- a/fints4k/build.gradle +++ b/fints4k/build.gradle @@ -22,15 +22,15 @@ kotlin { android() targets { - // Select iOS target for real device or emulator. final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64 - // iOS target. fromPreset(iOSTarget, 'ios') { binaries { framework { baseName = "fints4k" + embedBitcode(embedBitcodeValue) + export(project(":common")) } } diff --git a/tools/BankFinder/build.gradle b/tools/BankFinder/build.gradle index 1069937c..7db68265 100644 --- a/tools/BankFinder/build.gradle +++ b/tools/BankFinder/build.gradle @@ -16,14 +16,14 @@ kotlin { } targets { - // Select iOS target for real device or emulator. final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64 - // iOS target. fromPreset(iOSTarget, 'ios') { binaries { framework { baseName = "BankFinder" + + embedBitcode(embedBitcodeValue) } } } diff --git a/tools/EpcQrCodeParser/build.gradle b/tools/EpcQrCodeParser/build.gradle index e98e7511..c9b48918 100644 --- a/tools/EpcQrCodeParser/build.gradle +++ b/tools/EpcQrCodeParser/build.gradle @@ -20,6 +20,8 @@ kotlin { binaries { framework { baseName = frameworkName + + embedBitcode(embedBitcodeValue) } } } diff --git a/ui/BankingUiCommon/build.gradle b/ui/BankingUiCommon/build.gradle index 6f720331..09acbc32 100644 --- a/ui/BankingUiCommon/build.gradle +++ b/ui/BankingUiCommon/build.gradle @@ -16,14 +16,14 @@ kotlin { } targets { - // Select iOS target for real device or emulator. final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64 - // iOS target. fromPreset(iOSTarget, 'ios') { binaries { framework { baseName = "BankingUiCommon" + + embedBitcode("bitcode") } } } diff --git a/ui/BankingUiNativeIntegration/build.gradle b/ui/BankingUiNativeIntegration/build.gradle index be4c6c68..27a39781 100644 --- a/ui/BankingUiNativeIntegration/build.gradle +++ b/ui/BankingUiNativeIntegration/build.gradle @@ -19,6 +19,8 @@ kotlin { framework { baseName = frameworkName + embedBitcode(embedBitcodeValue) + // transitiveExport = true export(project(":BankingUiCommon")) export(project(":fints4kBankingClient"))