Extracted iOSIsRealDevice so that it's easier to switch between iOS Simulator and real device

This commit is contained in:
dankito 2020-09-08 00:23:12 +02:00
parent a821237641
commit 397acebf79
7 changed files with 6 additions and 10 deletions

View File

@ -30,6 +30,11 @@ ext {
hbci4jVersion = '3.1.37'
/* iOS */
iOSIsRealDevice = false
/* Android */
androidCompileSdkVersion = 28

View File

@ -16,11 +16,8 @@ kotlin {
}
targets {
// Select iOS target for real device or emulator.
final def iOSIsRealDevice = System.getenv('SDK_NAME')?.startsWith("iphoneos")
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
// iOS target.
fromPreset(iOSTarget, 'ios') {
binaries {
framework {

View File

@ -23,7 +23,6 @@ kotlin {
targets {
// Select iOS target for real device or emulator.
final def iOSIsRealDevice = System.getenv('SDK_NAME')?.startsWith("iphoneos")
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
// iOS target.

View File

@ -17,7 +17,6 @@ kotlin {
targets {
// Select iOS target for real device or emulator.
final def iOSIsRealDevice = System.getenv('SDK_NAME')?.startsWith("iphoneos")
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
// iOS target.

View File

@ -17,7 +17,6 @@ kotlin {
targets {
// Select iOS target for real device or emulator.
final def iOSIsRealDevice = System.getenv('SDK_NAME')?.startsWith("iphoneos")
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
// iOS target.

View File

@ -8,12 +8,10 @@ ext.artifactName = "banking-ui-native-integration"
kotlin {
targets {
// Select iOS target for real device or emulator.
final def iOSIsRealDevice = System.getenv('SDK_NAME')?.startsWith("iphoneos")
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
// iOS target.
fromPreset(iOSTarget, 'ios') {
binaries {
framework {

View File

@ -17,7 +17,6 @@ kotlin {
targets {
// Select iOS target for real device or emulator.
final def iOSIsRealDevice = System.getenv('SDK_NAME')?.startsWith("iphoneos")
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
// iOS target.