Skip to content

Commit 11dc96f

Browse files
Work around #3968, start running integration tests for Native (#3996)
As there were no native targets in smokeTest, the problem with the missing atomicfu dependency (KT-64111) was not addressed in time. The bug was revealed after release of kotlinx.coroutines with atomicfu-gradle-plugin 0.23.1. Coroutines enabled Native IR transformation, and for this mode, atomicfu-gradle-plugin only provided compile dependency to atomicfu, though implementation dependency was still necessary. This commit adds the smoke test for Native and temporarily adds an explicit dependency on atomicfu for Native artifacts. Fixes #3968 Co-authored-by: Maria Sokolova <[email protected]>
1 parent c8105d1 commit 11dc96f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

buildSrc/src/main/kotlin/kotlin-multiplatform-conventions.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ kotlin {
8888
api("org.jetbrains.kotlin:kotlin-test-junit:${version("kotlin")}")
8989
api("junit:junit:${version("junit")}")
9090
}
91+
nativeMain.dependencies {
92+
// workaround for #3968 until this is fixed on atomicfu's side
93+
api("org.jetbrains.kotlinx:atomicfu:0.23.1")
94+
}
9195
val jsAndWasmSharedMain by registering {
9296
dependsOn(commonMain.get())
9397
}

integration-testing/smokeTest/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ kotlin {
1717
wasmJs() {
1818
nodejs()
1919
}
20+
21+
macosArm64()
22+
macosX64()
23+
linuxArm64()
24+
linuxX64()
25+
mingwX64()
2026

2127
sourceSets {
2228
commonMain {

0 commit comments

Comments
 (0)