Merge remote-tracking branch 'space/dev' into dev

This commit is contained in:
Alexander Nozik 2022-11-23 12:28:17 +03:00
commit 6de53f5c0a
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -54,7 +54,7 @@ public open class KScienceExtension(public val project: Project) {
version: String = KScienceVersions.coroutinesVersion, version: String = KScienceVersions.coroutinesVersion,
sourceSet: DependencySourceSet = DependencySourceSet.MAIN, sourceSet: DependencySourceSet = DependencySourceSet.MAIN,
configuration: DependencyConfiguration = DependencyConfiguration.API, configuration: DependencyConfiguration = DependencyConfiguration.API,
): Unit { ) {
project.useCommonDependency( project.useCommonDependency(
"org.jetbrains.kotlinx:kotlinx-coroutines-core:$version", "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version",
dependencySourceSet = sourceSet, dependencySourceSet = sourceSet,
@ -314,7 +314,7 @@ public open class KScienceMppExtension(project: Project) : KScienceExtension(pro
configure<KotlinMultiplatformExtension> { configure<KotlinMultiplatformExtension> {
sourceSets { sourceSets {
val nativeTargets: List<KotlinNativeTarget> = val nativeTargets: List<KotlinNativeTarget> =
nativeConfiguration.targets.values.mapNotNull { nativeTarget -> nativeConfiguration.targets.values.map { nativeTarget ->
when (nativeTarget.preset) { when (nativeTarget.preset) {
KotlinNativePreset.linuxX64 -> linuxX64( KotlinNativePreset.linuxX64 -> linuxX64(
nativeTarget.targetName, nativeTarget.targetName,
@ -346,7 +346,7 @@ public open class KScienceMppExtension(project: Project) : KScienceExtension(pro
nativeTarget.targetConfiguration nativeTarget.targetConfiguration
) )
KotlinNativePreset.iosSimulatorArm64 -> iosArm64( KotlinNativePreset.iosSimulatorArm64 -> iosSimulatorArm64(
nativeTarget.targetName, nativeTarget.targetName,
nativeTarget.targetConfiguration nativeTarget.targetConfiguration
) )