dima-avdeev-jb
3 years ago
committed by
GitHub
10 changed files with 35 additions and 12 deletions
@ -0,0 +1,17 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithNativeShortcuts |
||||
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget |
||||
|
||||
fun KotlinTargetContainerWithNativeShortcuts.iosWorkaroundSupportArm64Simulator( |
||||
configure: KotlinNativeTarget.() -> Unit |
||||
) { |
||||
val isBuildToSimulator = System.getenv("SDK_NAME")?.startsWith("iphonesimulator") ?: false |
||||
val isArm64Target = System.getenv("NATIVE_ARCH") == "arm64" |
||||
|
||||
if (isBuildToSimulator && isArm64Target) { |
||||
//workaround: |
||||
iosSimulatorArm64(name = "ios", configure = configure) |
||||
} else { |
||||
//default behavior: |
||||
ios(configure = configure) |
||||
} |
||||
} |
@ -1,4 +1,3 @@
|
||||
# TODO can we get rid of duplication with root gradle.properties? |
||||
#todo remove -Pkotlin.version=1.6.20 from Xcode project, when stable version on Compose with Koltin 1.6.20 or later released |
||||
kotlin.version=1.6.10 |
||||
compose.version=1.1.0 |
||||
|
Loading…
Reference in new issue