Extracted iOSIsRealDevice so that it's easier to switch between iOS Simulator and real device
This commit is contained in:
parent
a821237641
commit
397acebf79
|
@ -30,6 +30,11 @@ ext {
|
||||||
hbci4jVersion = '3.1.37'
|
hbci4jVersion = '3.1.37'
|
||||||
|
|
||||||
|
|
||||||
|
/* iOS */
|
||||||
|
|
||||||
|
iOSIsRealDevice = false
|
||||||
|
|
||||||
|
|
||||||
/* Android */
|
/* Android */
|
||||||
|
|
||||||
androidCompileSdkVersion = 28
|
androidCompileSdkVersion = 28
|
||||||
|
|
|
@ -16,11 +16,8 @@ kotlin {
|
||||||
}
|
}
|
||||||
|
|
||||||
targets {
|
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
|
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
||||||
|
|
||||||
// iOS target.
|
|
||||||
fromPreset(iOSTarget, 'ios') {
|
fromPreset(iOSTarget, 'ios') {
|
||||||
binaries {
|
binaries {
|
||||||
framework {
|
framework {
|
||||||
|
|
|
@ -23,7 +23,6 @@ kotlin {
|
||||||
|
|
||||||
targets {
|
targets {
|
||||||
// Select iOS target for real device or emulator.
|
// 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
|
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
||||||
|
|
||||||
// iOS target.
|
// iOS target.
|
||||||
|
|
|
@ -17,7 +17,6 @@ kotlin {
|
||||||
|
|
||||||
targets {
|
targets {
|
||||||
// Select iOS target for real device or emulator.
|
// 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
|
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
||||||
|
|
||||||
// iOS target.
|
// iOS target.
|
||||||
|
|
|
@ -17,7 +17,6 @@ kotlin {
|
||||||
|
|
||||||
targets {
|
targets {
|
||||||
// Select iOS target for real device or emulator.
|
// 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
|
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
||||||
|
|
||||||
// iOS target.
|
// iOS target.
|
||||||
|
|
|
@ -8,12 +8,10 @@ ext.artifactName = "banking-ui-native-integration"
|
||||||
|
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|
||||||
targets {
|
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
|
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
||||||
|
|
||||||
// iOS target.
|
|
||||||
fromPreset(iOSTarget, 'ios') {
|
fromPreset(iOSTarget, 'ios') {
|
||||||
binaries {
|
binaries {
|
||||||
framework {
|
framework {
|
||||||
|
|
|
@ -17,7 +17,6 @@ kotlin {
|
||||||
|
|
||||||
targets {
|
targets {
|
||||||
// Select iOS target for real device or emulator.
|
// 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
|
final def iOSTarget = iOSIsRealDevice ? presets.iosArm64 : presets.iosX64
|
||||||
|
|
||||||
// iOS target.
|
// iOS target.
|
||||||
|
|
Loading…
Reference in New Issue