Skip to content
This repository was archived by the owner on Jul 5, 2025. It is now read-only.

Commit e00931d

Browse files
committed
Disable more native code
1 parent b5e773d commit e00931d

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

build.gradle.kts

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import org.gradle.internal.impldep.org.joda.time.LocalDateTime
88
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
99
import org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithPresetFunctions
1010
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation
11+
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithHostTests
1112

1213
plugins {
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

Comments
 (0)