Add more build targets for coroutines extensions
kotlinx-coroutines has since started publishing more native build targets since we first became multiplatform. This commit ensures we also build native targets for the platforms that were previously missing, namely: - androidNativeArm32 - androidNativeArm64 - androidNativeX64 - androidNativeX86 - linuxArm64 - wasmJs This ensures that we are now supporting all three tiers of Kotlin/Native target support. See: https://kotlinlang.org/docs/native-target-support.html
This commit is contained in:
parent
a4fe9f6fa8
commit
da96ceef8e
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
@ -93,6 +93,7 @@ jobs:
|
||||
publishTvosX64PublicationToMavenRepository
|
||||
publishWatchosArm32PublicationToMavenRepository
|
||||
publishWatchosArm64PublicationToMavenRepository
|
||||
publishWatchosDeviceArm64PublicationToMavenRepository
|
||||
publishWatchosSimulatorArm64PublicationToMavenRepository
|
||||
publishWatchosX64PublicationToMavenRepository
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
|
||||
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
|
||||
import org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask
|
||||
|
||||
@ -15,25 +16,45 @@ kotlin {
|
||||
nodejs()
|
||||
}
|
||||
|
||||
linuxX64()
|
||||
@OptIn(ExperimentalWasmDsl::class)
|
||||
wasmJs {
|
||||
binaries.executable()
|
||||
nodejs()
|
||||
}
|
||||
|
||||
mingwX64()
|
||||
/* https://kotlinlang.org/docs/native-target-support.html#tier-1 */
|
||||
|
||||
macosArm64()
|
||||
macosX64()
|
||||
|
||||
iosArm64()
|
||||
macosArm64()
|
||||
iosSimulatorArm64()
|
||||
iosX64()
|
||||
|
||||
tvosArm64()
|
||||
tvosSimulatorArm64()
|
||||
tvosX64()
|
||||
/* https://kotlinlang.org/docs/native-target-support.html#tier-2 */
|
||||
|
||||
linuxX64()
|
||||
linuxArm64()
|
||||
|
||||
watchosArm32()
|
||||
watchosArm64()
|
||||
watchosSimulatorArm64()
|
||||
watchosX64()
|
||||
watchosArm32()
|
||||
watchosArm64()
|
||||
|
||||
tvosSimulatorArm64()
|
||||
tvosX64()
|
||||
tvosArm64()
|
||||
|
||||
iosArm64()
|
||||
|
||||
/* https://kotlinlang.org/docs/native-target-support.html#tier-3 */
|
||||
|
||||
androidNativeArm32()
|
||||
androidNativeArm64()
|
||||
androidNativeX86()
|
||||
androidNativeX64()
|
||||
|
||||
mingwX64()
|
||||
|
||||
watchosDeviceArm64()
|
||||
|
||||
sourceSets {
|
||||
all {
|
||||
|
@ -1,5 +1,3 @@
|
||||
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
|
||||
|
||||
plugins {
|
||||
`maven-publish`
|
||||
id("kotlin-conventions")
|
||||
@ -8,18 +6,4 @@ plugins {
|
||||
|
||||
kotlin {
|
||||
explicitApi()
|
||||
|
||||
// Additional targets not currently supported by coroutines
|
||||
androidNativeArm32()
|
||||
androidNativeArm64()
|
||||
androidNativeX64()
|
||||
androidNativeX86()
|
||||
|
||||
linuxArm64()
|
||||
|
||||
@OptIn(ExperimentalWasmDsl::class)
|
||||
wasmJs {
|
||||
binaries.executable()
|
||||
nodejs()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user