Wizard: temporary add ios shortcut target

Temporary as it will not be needed when HMPP wizard will be ready
This commit is contained in:
Ilya Kirillov
2020-07-23 22:54:02 +03:00
committed by Kirill Shmakov
parent f330cd3697
commit 63fa6674a3
5 changed files with 27 additions and 10 deletions
@@ -19,7 +19,7 @@ repositories {
}
kotlin {
android()
iosX64('ios') {
ios {
binaries {
framework {
baseName = 'shared'
@@ -72,7 +72,9 @@ android {
task(packForXcode, type: Sync) {
group = 'build'
def mode = System.getenv('CONFIGURATION') ?: 'DEBUG'
def framework = kotlin.targets.ios.binaries.getFramework(mode)
def sdkName = System.getenv('SDK_NAME') ?: 'iphonesimulator'
def targetName = 'ios' + (sdkName.startsWith('iphoneos') ? 'Arm64' : 'X64')
def framework = kotlin.targets[targetName].binaries.getFramework(mode)
inputs.property('mode', mode)
dependsOn(framework.linkTask)
def targetDir = new File(buildDir, 'xcode-frameworks')
@@ -19,7 +19,7 @@ repositories {
}
kotlin {
android()
iosX64("ios") {
ios {
binaries {
framework {
baseName = "shared"
@@ -66,7 +66,9 @@ android {
val packForXcode by tasks.creating(Sync::class) {
group = "build"
val mode = System.getenv("CONFIGURATION") ?: "DEBUG"
val framework = kotlin.targets.getByName<KotlinNativeTarget>("ios").binaries.getFramework(mode)
val sdkName = System.getenv("SDK_NAME") ?: "iphonesimulator"
val targetName = "ios" + if (sdkName.startsWith("iphoneos")) "Arm64" else "X64"
val framework = kotlin.targets.getByName<KotlinNativeTarget>(targetName).binaries.getFramework(mode)
inputs.property("mode", mode)
dependsOn(framework.linkTask)
val targetDir = File(buildDir, "xcode-frameworks")