Implemented creating bitcode for exported iOS frameworks as bitcode is needed to create an archive for app
This commit is contained in:
parent
02af929744
commit
e43be8f0aa
|
@ -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 */
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,8 @@ kotlin {
|
|||
binaries {
|
||||
framework {
|
||||
baseName = frameworkName
|
||||
|
||||
embedBitcode(embedBitcodeValue)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,8 @@ kotlin {
|
|||
framework {
|
||||
baseName = frameworkName
|
||||
|
||||
embedBitcode(embedBitcodeValue)
|
||||
|
||||
// transitiveExport = true
|
||||
export(project(":BankingUiCommon"))
|
||||
export(project(":fints4kBankingClient"))
|
||||
|
|
Loading…
Reference in New Issue