https://kotlinlang.org logo
#webassembly
Title
# webassembly
b

bashor

11/01/2023, 12:54 PM
New libraries versions with Kotlin/Wasm compatible with 1.9.20-RC2+
Copy code
serialization 1.6.1-wasm1
atomic 0.22.0-wasm2
coroutines 1.7.2-wasm3
immutable 0.4-wasm1
datetime 0.4.1-wasm1
ktor 3.0.0-wasm1
Compose for Web will be available later, feel free to follow KT-62872
👍 9
👍🏾 1
👍🏼 1
kodee happy 2
j

John O'Reilly

11/03/2023, 10:13 AM
When are you roughly hoping to update Compose for Web? I have it disabled in a number of samples for now due to them being updated to Kotlin 1.9.20
b

bashor

11/03/2023, 10:52 AM
cc @Oleksandr Karpovich [JB]
o

Oleksandr Karpovich [JB]

11/03/2023, 10:53 AM
working on it 🙂 today or monday at latest
👍 2
thank you color 1
kodee excited 1
it's ready: 1.5.10-dev-wasm02
j

John O'Reilly

11/03/2023, 2:00 PM
Nice, thanks!
r

Robert Jaros

11/03/2023, 2:28 PM
Working fine for me. Thanks!
K 1
j

John O'Reilly

11/03/2023, 3:38 PM
Can't remember if this was case before but seems like we need to use
1.5.10-dev-wasm02
for all compose multiplatform targets e.g. desktop?
o

Oleksandr Karpovich [JB]

11/03/2023, 5:04 PM
it's better to not mix different versions of the gradle plugin in one project (it will likely cause some problems). But using 1.5.10 compose libs for desktop is okay. Do you need to use different versions?
j

John O'Reilly

11/03/2023, 5:04 PM
I'm seeing issues using 1.5.10 for say desktop and then 1.5.10-dev-wasm02 for web....if I use 1.5.10-dev-wasm02 for both then it's fine
o

Oleksandr Karpovich [JB]

11/03/2023, 5:07 PM
I see. For development purpose it's okay to use 1.5.10-dev-wasm02 for all platforms. But if it's about a production (e.g. commercial) app for android/desktop/ios, it's better to make sure the release build is built with 1.5.10 for them. So an extra property and configuration will be necessary to select a correct version
👍 1
a

Abdul Basit

11/14/2023, 5:27 AM
Do we have IO dispatcher in
coroutines 1.7.2-wasm3
?
b

bashor

11/14/2023, 11:59 AM
I think no, the API surface is similar to js version.
25 Views