From 680719ac56e1b1285696720c55c4e5a64312f069 Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Sun, 6 Nov 2022 13:05:36 +0400 Subject: [PATCH] Fix a wrong iOS target --- src/main/kotlin/space/kscience/gradle/KScienceExtension.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/space/kscience/gradle/KScienceExtension.kt b/src/main/kotlin/space/kscience/gradle/KScienceExtension.kt index d66b0dc..878ec4a 100644 --- a/src/main/kotlin/space/kscience/gradle/KScienceExtension.kt +++ b/src/main/kotlin/space/kscience/gradle/KScienceExtension.kt @@ -54,7 +54,7 @@ public open class KScienceExtension(public val project: Project) { version: String = KScienceVersions.coroutinesVersion, sourceSet: DependencySourceSet = DependencySourceSet.MAIN, configuration: DependencyConfiguration = DependencyConfiguration.API, - ): Unit { + ) { project.useCommonDependency( "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version", dependencySourceSet = sourceSet, @@ -314,7 +314,7 @@ public open class KScienceMppExtension(project: Project) : KScienceExtension(pro configure { sourceSets { val nativeTargets: List = - nativeConfiguration.targets.values.mapNotNull { nativeTarget -> + nativeConfiguration.targets.values.map { nativeTarget -> when (nativeTarget.preset) { KotlinNativePreset.linuxX64 -> linuxX64( nativeTarget.targetName, @@ -346,7 +346,7 @@ public open class KScienceMppExtension(project: Project) : KScienceExtension(pro nativeTarget.targetConfiguration ) - KotlinNativePreset.iosSimulatorArm64 -> iosArm64( + KotlinNativePreset.iosSimulatorArm64 -> iosSimulatorArm64( nativeTarget.targetName, nativeTarget.targetConfiguration ) -- 2.34.1