Implemented creating bitcode for exported iOS frameworks as bitcode is needed to create an archive for app

This commit is contained in:
dankito 2020-10-23 01:27:47 +02:00
parent 02af929744
commit e43be8f0aa
7 changed files with 17 additions and 7 deletions

View File

@ -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 */

View File

@ -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)
}
}
}

View File

@ -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"))
}
}

View File

@ -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)
}
}
}

View File

@ -20,6 +20,8 @@ kotlin {
binaries {
framework {
baseName = frameworkName
embedBitcode(embedBitcodeValue)
}
}
}

View File

@ -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")
}
}
}

View File

@ -19,6 +19,8 @@ kotlin {
framework {
baseName = frameworkName
embedBitcode(embedBitcodeValue)
// transitiveExport = true
export(project(":BankingUiCommon"))
export(project(":fints4kBankingClient"))