John O'Reilly
12/07/2023, 4:58 PM3.0.0-wasm1
version in isolated module but trying it now in common code in a KMP project.....it seems to mostly work but on iOS I'm getting following....I have added atomicfu
in dependencies but perhaps might be using wrong version (also using coroutines 1.8.0-RC
)
w: skipping /Users/joreilly/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-iossimulatorarm64/0.23.1/577e14084dac4dbadcaf86db01f359b4939f5d5a/atomicfu-cinterop-interop.klib. The library versions don't match. Expected '0.22.0-wasm2', found 'unspecified'
bashor
12/07/2023, 5:05 PMbashor
12/07/2023, 5:07 PMJohn O'Reilly
12/07/2023, 5:08 PMJohn O'Reilly
12/07/2023, 5:08 PMimplementation("org.jetbrains.kotlinx:atomicfu:0.23.1")
Igor Yakovlev
12/07/2023, 5:35 PMJohn O'Reilly
12/07/2023, 5:35 PMJohn O'Reilly
12/07/2023, 5:37 PMcommonMain
dependencies you have there?Igor Yakovlev
12/07/2023, 5:37 PMval commonMain by getting {
dependencies {
implementation("io.ktor:ktor-client-core:3.0.0-wasm1")
implementation("io.ktor:ktor-client-cio:3.0.0-wasm1")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
John O'Reilly
12/07/2023, 5:38 PMJohn O'Reilly
12/07/2023, 5:40 PMJohn O'Reilly
12/07/2023, 5:40 PMIgor Yakovlev
12/07/2023, 5:41 PMJohn O'Reilly
12/07/2023, 5:41 PM./gradlew :composeApp:compileKotlinIosSimulatorArm64
John O'Reilly
12/07/2023, 5:44 PMexpected '0.22.0-wasm2'
in error above)John O'Reilly
12/07/2023, 6:34 PMAndrey Larionov
12/08/2023, 10:22 AMJohn O'Reilly
12/08/2023, 10:23 AMJohn O'Reilly
12/08/2023, 10:31 AMAndrey Larionov
12/08/2023, 11:02 AMIgor Yakovlev
12/08/2023, 3:02 PM3.0.0-wasm2
into experimental repository which is not affected to this issue.Andrey Larionov
12/08/2023, 3:26 PMCould not find io.ktor:ktor-client-core:3.0.0-wasm2
Could not find io.ktor:ktor-client-content-negotiation:3.0.0-wasm2
Could not find io.ktor:ktor-serialization-kotlinx-json:3.0.0-wasm2
John O'Reilly
12/08/2023, 5:16 PMIgor Yakovlev
12/08/2023, 6:45 PMJohn O'Reilly
12/08/2023, 7:27 PM3.2.0
version there (and have been getting renovate notifications about that version today for various repos)....assume that's a mistake?Andrey Larionov
12/08/2023, 9:27 PM:wasm
version everywhere it’s possible
I guess if your project includes only Android, iOS and Desktop configurations, you can use the lates available version eg 3.2.0
By the way, you can easily check it by creating a simple project via Kotlin Multiplatform Wizard without a Web configurationJohn O'Reilly
12/09/2023, 3:11 PM3.0.0-wasm2
ktor dependencies available now, thanks!John O'Reilly
12/09/2023, 3:18 PM