@@ -8,6 +8,7 @@ import org.gradle.internal.impldep.org.joda.time.LocalDateTime
88import org.jetbrains.kotlin.gradle.dsl.JvmTarget
99import org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithPresetFunctions
1010import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation
11+ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithHostTests
1112
1213plugins {
1314 application
@@ -97,20 +98,20 @@ kotlin {
9798 }
9899
99100 // used by the 'getting' delegate
100- @Suppress(" UNUSED_VARIABLE" , " KotlinRedundantDiagnosticSuppress" )
101- val macNativeMain by getting {
102- dependsOn(commonMain)
103- dependencies {
104- implementation(" io.ktor:ktor-client-curl:2.3.+" )
105- implementation(" app.cash.sqldelight:native-driver:2.+" )
106- }
107- }
101+ // @Suppress("UNUSED_VARIABLE", "KotlinRedundantDiagnosticSuppress")
102+ // val macNativeMain by getting {
103+ // dependsOn(commonMain)
104+ // dependencies {
105+ // implementation("io.ktor:ktor-client-curl:2.3.+")
106+ // implementation("app.cash.sqldelight:native-driver:2.+")
107+ // }
108+ // }
108109
109110 // used by the 'getting' delegate
110- @Suppress(" UNUSED_VARIABLE" , " KotlinRedundantDiagnosticSuppress" )
111- val macNativeTest by getting {
112- dependsOn(commonTest)
113- }
111+ // @Suppress("UNUSED_VARIABLE", "KotlinRedundantDiagnosticSuppress")
112+ // val macNativeTest by getting {
113+ // dependsOn(commonTest)
114+ // }
114115
115116 }
116117
@@ -409,9 +410,11 @@ class Configurator(private val env: Env, private val output: Output) {
409410 println (" Configured Kotlin target '$name '" )
410411 }
411412
412- fun configureNativeTarget (container : KotlinTargetContainerWithPresetFunctions ) =
413+ @Suppress(" USELESS_CAST" , " UNUSED_PARAMETER" )
414+ fun configureNativeTarget (container : KotlinTargetContainerWithPresetFunctions ): KotlinNativeTargetWithHostTests ? =
413415 when (env.currentPlatform) {
414- Env .Platform .MAC -> null // TODO – disabled temporarily until the build is fixed
416+ // TODO – disabled temporarily until the build is fixed
417+ Env .Platform .MAC -> null as ? KotlinNativeTargetWithHostTests ?
415418 // when (env.currentArch) {
416419 // Env.Arch.X86 -> container.macosX64(env.currentPlatform.targetName)
417420 // Env.Arch.ARM -> container.macosArm64(env.currentPlatform.targetName)
0 commit comments