Skip to content

Commit

Permalink
Update coroutines version to avoid linkage error on wasmJs target
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Jan 19, 2025
1 parent ba449f4 commit 2bbd9a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ publication = { id = "com.vanniktech.maven.publish", version = "0.30.0" }

[libraries]
kotlin-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "serialization" }
kotlin-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version = "1.10.1" }
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
kotest-framework-engine = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
kotest-runner-junit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
Expand Down
8 changes: 8 additions & 0 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ kotlin {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))

implementation(libs.kotlin.coroutines.core.get().toString()) {
// see "https://kotlinlang.slack.com/archives/CDFP59223/p1736191408326039?thread_ts=1734964013.996149&cid=CDFP59223"
because(
"there is a problem with linkage related to changes in kotlin 2.1.0: " +
"wasmJs tests in browser does not work without updating coroutines to the version compiled with 2.1.0",
)
}
}
}
val nonWasmWasiTest by creating {
Expand Down

0 comments on commit 2bbd9a8

Please sign in to comment.