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 */
|
/* iOS */
|
||||||
|
|
||||||
iOSIsRealDevice = false
|
iOSIsRealDevice = false
|
||||||
|
embedBitcodeValue = "marker" // Use "marker" to embed the bitcode marker (for debug builds)
|
||||||
|
// embedBitcodeValue = "bitcode" // for release binaries
|
||||||
|
|
||||||
|
|
||||||
/* Android */
|
/* Android */
|
||||||
|
|
|
@ -7,6 +7,8 @@ plugins {
|
||||||
|
|
||||||
ext.artifactName = "multiplatform-utils"
|
ext.artifactName = "multiplatform-utils"
|
||||||
|
|
||||||
|
def frameworkName = "MultiplatformUtils"
|
||||||
|
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
|
@ -21,7 +23,9 @@ kotlin {
|
||||||
fromPreset(iOSTarget, 'ios') {
|
fromPreset(iOSTarget, 'ios') {
|
||||||
binaries {
|
binaries {
|
||||||
framework {
|
framework {
|
||||||
baseName = "MultiplatformUtils"
|
baseName = frameworkName
|
||||||
|
|
||||||
|
embedBitcode(embedBitcodeValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,15 +22,15 @@ kotlin {
|
||||||
android()
|
android()
|
||||||
|
|
||||||
targets {
|
targets {
|
||||||
// Select iOS target for real device or emulator.
|
|
||||||
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
||||||
|
|
||||||
// iOS target.
|
|
||||||
fromPreset(iOSTarget, 'ios') {
|
fromPreset(iOSTarget, 'ios') {
|
||||||
binaries {
|
binaries {
|
||||||
framework {
|
framework {
|
||||||
baseName = "fints4k"
|
baseName = "fints4k"
|
||||||
|
|
||||||
|
embedBitcode(embedBitcodeValue)
|
||||||
|
|
||||||
export(project(":common"))
|
export(project(":common"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,14 +16,14 @@ kotlin {
|
||||||
}
|
}
|
||||||
|
|
||||||
targets {
|
targets {
|
||||||
// Select iOS target for real device or emulator.
|
|
||||||
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
||||||
|
|
||||||
// iOS target.
|
|
||||||
fromPreset(iOSTarget, 'ios') {
|
fromPreset(iOSTarget, 'ios') {
|
||||||
binaries {
|
binaries {
|
||||||
framework {
|
framework {
|
||||||
baseName = "BankFinder"
|
baseName = "BankFinder"
|
||||||
|
|
||||||
|
embedBitcode(embedBitcodeValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,8 @@ kotlin {
|
||||||
binaries {
|
binaries {
|
||||||
framework {
|
framework {
|
||||||
baseName = frameworkName
|
baseName = frameworkName
|
||||||
|
|
||||||
|
embedBitcode(embedBitcodeValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,14 +16,14 @@ kotlin {
|
||||||
}
|
}
|
||||||
|
|
||||||
targets {
|
targets {
|
||||||
// Select iOS target for real device or emulator.
|
|
||||||
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
||||||
|
|
||||||
// iOS target.
|
|
||||||
fromPreset(iOSTarget, 'ios') {
|
fromPreset(iOSTarget, 'ios') {
|
||||||
binaries {
|
binaries {
|
||||||
framework {
|
framework {
|
||||||
baseName = "BankingUiCommon"
|
baseName = "BankingUiCommon"
|
||||||
|
|
||||||
|
embedBitcode("bitcode")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,8 @@ kotlin {
|
||||||
framework {
|
framework {
|
||||||
baseName = frameworkName
|
baseName = frameworkName
|
||||||
|
|
||||||
|
embedBitcode(embedBitcodeValue)
|
||||||
|
|
||||||
// transitiveExport = true
|
// transitiveExport = true
|
||||||
export(project(":BankingUiCommon"))
|
export(project(":BankingUiCommon"))
|
||||||
export(project(":fints4kBankingClient"))
|
export(project(":fints4kBankingClient"))
|
||||||
|
|
Loading…
Reference in New Issue