m1 related changes
This commit is contained in:
parent
5fc45a8043
commit
7a77b35f80
6 changed files with 31 additions and 16 deletions
|
@ -20,7 +20,7 @@ buildscript {
|
||||||
classpath(shadow)
|
classpath(shadow)
|
||||||
classpath(kotlinter)
|
classpath(kotlinter)
|
||||||
classpath(gradleVersionsPlugin)
|
classpath(gradleVersionsPlugin)
|
||||||
val kmpNativeCoroutinesVersion = if (kotlinVersion == "1.6.0") "0.9.0-new-mm" else "0.8.0"
|
val kmpNativeCoroutinesVersion = if (kotlinVersion == "1.6.0") "0.9.0" else "0.8.0"
|
||||||
classpath("com.rickclephas.kmp:kmp-nativecoroutines-gradle-plugin:$kmpNativeCoroutinesVersion")
|
classpath("com.rickclephas.kmp:kmp-nativecoroutines-gradle-plugin:$kmpNativeCoroutinesVersion")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,9 @@ object Versions {
|
||||||
const val androidCompileSdk = 31
|
const val androidCompileSdk = 31
|
||||||
const val androidTargetSdk = androidCompileSdk
|
const val androidTargetSdk = androidCompileSdk
|
||||||
|
|
||||||
const val kotlinCoroutines = "1.5.1-new-mm-dev2"
|
const val kotlinCoroutines = "1.5.2-native-mt"
|
||||||
const val koin = "3.1.2"
|
const val koin = "3.1.4"
|
||||||
const val ktor = "1.6.2-native-mm-eap-196"
|
const val ktor = "1.6.5"
|
||||||
const val kotlinxSerialization = "1.3.0"
|
const val kotlinxSerialization = "1.3.0"
|
||||||
const val kotlinxHtmlJs = "0.7.3"
|
const val kotlinxHtmlJs = "0.7.3"
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ object Versions {
|
||||||
const val mockito = "3.11.2"
|
const val mockito = "3.11.2"
|
||||||
const val robolectric = "4.6.1"
|
const val robolectric = "4.6.1"
|
||||||
|
|
||||||
const val sqlDelight = "1.5.2"
|
const val sqlDelight = "1.5.3"
|
||||||
const val shadow = "7.0.0"
|
const val shadow = "7.0.0"
|
||||||
const val kotlinterGradle = "3.4.5"
|
const val kotlinterGradle = "3.4.5"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
kotlin("multiplatform")
|
||||||
|
@ -40,15 +41,14 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
val sdkName: String? = System.getenv("SDK_NAME")
|
val iosTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget = when {
|
||||||
|
System.getenv("SDK_NAME")?.startsWith("iphoneos") == true -> ::iosArm64
|
||||||
val isiOSDevice = sdkName.orEmpty().startsWith("iphoneos")
|
System.getenv("NATIVE_ARCH")?.startsWith("arm") == true -> ::iosSimulatorArm64 // available to KT 1.5.30
|
||||||
if (isiOSDevice) {
|
else -> ::iosX64
|
||||||
iosArm64("iOS")
|
|
||||||
} else {
|
|
||||||
iosX64("iOS")
|
|
||||||
}
|
}
|
||||||
|
iosTarget("iOS") {}
|
||||||
|
|
||||||
|
val sdkName: String? = System.getenv("SDK_NAME")
|
||||||
val isWatchOSDevice = sdkName.orEmpty().startsWith("watchos")
|
val isWatchOSDevice = sdkName.orEmpty().startsWith("watchos")
|
||||||
if (isWatchOSDevice) {
|
if (isWatchOSDevice) {
|
||||||
watchosArm64("watch")
|
watchosArm64("watch")
|
||||||
|
|
|
@ -26,5 +26,5 @@ xcodeproj=./ios/PeopleInSpaceSwiftUI
|
||||||
# Kotlin/Native clients can override this through updating common.podspec
|
# Kotlin/Native clients can override this through updating common.podspec
|
||||||
kotlinVersion=1.5.31
|
kotlinVersion=1.5.31
|
||||||
|
|
||||||
kotlin.native.binary.memoryModel=experimental
|
#kotlin.native.binary.memoryModel=experimental
|
||||||
kotlin.native.binary.freezing=disabled
|
#kotlin.native.binary.freezing=disabled
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<key>PeopleInSpaceWidgetExtension.xcscheme_^#shared#^_</key>
|
<key>PeopleInSpaceWidgetExtension.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>6</integer>
|
<integer>3</integer>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
|
@ -11,6 +11,11 @@
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</dict>
|
</dict>
|
||||||
|
<key>KMPNativeCoroutinesCombine.xcscheme_^#shared#^_</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>2</integer>
|
||||||
|
</dict>
|
||||||
<key>KMPNativeCoroutinesCore.xcscheme</key>
|
<key>KMPNativeCoroutinesCore.xcscheme</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>isShown</key>
|
<key>isShown</key>
|
||||||
|
@ -18,12 +23,17 @@
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>2</integer>
|
<integer>2</integer>
|
||||||
</dict>
|
</dict>
|
||||||
|
<key>KMPNativeCoroutinesCore.xcscheme_^#shared#^_</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>4</integer>
|
||||||
|
</dict>
|
||||||
<key>Pods-PeopleInSpaceSwiftUI.xcscheme</key>
|
<key>Pods-PeopleInSpaceSwiftUI.xcscheme</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>isShown</key>
|
<key>isShown</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>3</integer>
|
<integer>1</integer>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Pods-PeopleInSpaceWidgetExtension.xcscheme</key>
|
<key>Pods-PeopleInSpaceWidgetExtension.xcscheme</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
@ -32,6 +42,11 @@
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>4</integer>
|
<integer>4</integer>
|
||||||
</dict>
|
</dict>
|
||||||
|
<key>Pods-PeopleInSpaceWidgetExtension.xcscheme_^#shared#^_</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>6</integer>
|
||||||
|
</dict>
|
||||||
<key>common.xcscheme</key>
|
<key>common.xcscheme</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>isShown</key>
|
<key>isShown</key>
|
||||||
|
|
Loading…
Reference in a new issue