voyager icon indicating copy to clipboard operation
voyager copied to clipboard

WASM support

Open DevSrSouza opened this issue 1 year ago • 8 comments

This PR adds the support for Kotlin WASM and update the Compose to 1.6.0-beta02.

Testing WASM support: ./gradlew :samples:multiplatform:wasmJsBrowserDevelopmentRun

DevSrSouza avatar Dec 27 '23 22:12 DevSrSouza

Does this need any testing? I would love to help in any way to get this implemented sooner.

likeich avatar Dec 28 '23 00:12 likeich

Everything is working pretty well so far, State restauration, etc. Just need to fix the build and migrate the Kotlin DSL to the new structure.

Feel free to checkout to the branch and test by publishing locally and using in your project!

DevSrSouza avatar Dec 28 '23 15:12 DevSrSouza

You might have seen it already but just fyi re. 1.8.0-RC2 of Kotlinx Coroutines....I think it should mean you won't have to include atomicfu as dependency (https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.8.0-RC2)

joreilly avatar Dec 28 '23 17:12 joreilly

Thanks @joreilly , I will update the Coroutines here and see if is not required anymore. But the plugin maybe should be required for be more performant, their is a branch of Compose Multiplatform Core applying AtomicFu Gradle Plugin. I'm following the same approach to avoid boxing types when is possible.

DevSrSouza avatar Dec 28 '23 18:12 DevSrSouza

Hey there, I would like to test it but I don't know how to publish it locally. Is there a guide for it, or any plans to release it as a alpha?

luludevmuniz avatar Jan 04 '24 13:01 luludevmuniz

@luludevmuniz try ./gradlew -Pversion=1.0.0 publishToMavenLocal

programadorthi avatar Jan 09 '24 01:01 programadorthi

When is it hoped to merge this and include in a release?

joreilly avatar Jan 27 '24 14:01 joreilly

Probably after Compose 1.6 is released

Syer10 avatar Jan 27 '24 16:01 Syer10