Skip to content

Commit 4de3115

Browse files
committed
Fix C-Interop for :runtime-ctrl
1 parent 76abc90 commit 4de3115

File tree

5 files changed

+9
-75
lines changed

5 files changed

+9
-75
lines changed

library/runtime-ctrl/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ kmpConfiguration {
8383
.cinterops.create("un")
8484
.defFile(cInteropDir.resolve("un.def"))
8585
}
86+
87+
afterEvaluate {
88+
val commonizeTask = tasks.findByName("commonizeCInterop") ?: return@afterEvaluate
89+
90+
tasks.all {
91+
if (!name.endsWith("MetadataElements")) return@all
92+
dependsOn(commonizeTask)
93+
}
94+
}
8695
}
8796
}
8897
}
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
POM_ARTIFACT_ID=runtime-ctrl
22
POM_NAME=KmpTor Runtime Ctrl
33
POM_DESCRIPTION=Tor Controller implementation utilized by runtime
4-
5-
kotlin.mpp.enableCInteropCommonization=false
6-
kotlin.mpp.enableCInteropCommonization.nowarn=true

library/runtime-ctrl/src/iosSimulatorArm64Main/kotlin/io/matthewnelson/kmp/tor/runtime/ctrl/internal/IosSimulatorArm64Platform.kt

Lines changed: 0 additions & 36 deletions
This file was deleted.

library/runtime-ctrl/src/iosX64Main/kotlin/io/matthewnelson/kmp/tor/runtime/ctrl/internal/IosX64Platform.kt

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)