Skip to content

Commit c28837a

Browse files
authored
Opt-in into experimental interop (KT-57728) to fix aggregate build (#3751)
1 parent 1aacb04 commit c28837a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

kotlinx-coroutines-core/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,14 @@ kotlin.sourceSets {
219219
}
220220
}
221221

222+
kotlin.sourceSets.configureEach {
223+
// Do not apply 'ExperimentalForeignApi' where we have allWarningsAsErrors set
224+
if (it.name in ["jvmMain", "jsMain", "concurrentMain", "commonMain"]) return
225+
languageSettings {
226+
optIn('kotlinx.cinterop.ExperimentalForeignApi')
227+
}
228+
}
229+
222230
jvmTest {
223231
minHeapSize = '1g'
224232
maxHeapSize = '1g'

0 commit comments

Comments
 (0)