PreCompose icon indicating copy to clipboard operation
PreCompose copied to clipboard

Wasm support

Open alexzhirkevich opened this issue 2 years ago • 12 comments

It'd be great to heave a wasm support. May be in a different experimental branch

alexzhirkevich avatar Jul 12 '23 05:07 alexzhirkevich

Seems like compose for wasm support is in different maven repo (https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental) and have different version, it's better to have a different branch to do it.

Tlaster avatar Jul 13 '23 05:07 Tlaster

https://blog.jetbrains.com/kotlin/2023/12/kotlin-for-webassembly-goes-alpha/

FunkyMuse avatar Dec 07 '23 18:12 FunkyMuse

please support wasm

ismai117 avatar Dec 09 '23 09:12 ismai117

Since compose-multiplatform 1.6.0-alpha01 comes with wasm support, I'll add this support as an alpha version.

Tlaster avatar Dec 09 '23 11:12 Tlaster

Koin does not support wasm target yet (see https://github.com/InsertKoinIO/koin/issues/1634), I'd like to wait for it.

Tlaster avatar Dec 10 '23 02:12 Tlaster

Koin does not support wasm target yet (see InsertKoinIO/koin#1634), I'd like to wait for it.

Hi koin 3.6.0-wasm-alpha1 is out.

mahramane avatar Jan 25 '24 09:01 mahramane

Still no wasm support for Koin Compose for now, which is the dependency for precompose-koin.

Tlaster avatar Jan 26 '24 02:01 Tlaster

Still no wasm support for Koin Compose for now, which is the dependency for precompose-koin.

@Tlaster they have the koin-compose artifact listed on their documentation site as part of the 3.6.0-wasm-alpha1 and it is listed on Maven Central too.

However when I browse their code on the 3.6.0-wasm-alpha1 tag I also don't see wasmJs listed. How is this possible did they make a mistake somewhere and is the wasm artifact in Maven Central non-functional? Or is there some Gradle magic that we're missing?

I'm not really a Koin user, but I'm having a look to see what's going on here.

Phaestion avatar Jan 27 '24 13:01 Phaestion

Still no wasm support for Koin Compose for now, which is the dependency for precompose-koin.

@Tlaster they have the koin-compose artifact listed on their documentation site as part of the 3.6.0-wasm-alpha1 and it is listed on Maven Central too.

However when I browse their code on the 3.6.0-wasm-alpha1 tag I also don't see wasmJs listed. How is this possible did they make a mistake somewhere and is the wasm artifact in Maven Central non-functional? Or is there some Gradle magic that we're missing?

I'm not really a Koin user, but I'm having a look to see what's going on here.

Not sure what's happening, if using io.insert-koin:koin-compose:3.6.0-wasm-alpha1 with wasmJs target, it will throw an exception in gradle: No matching variant of io.insert-koin:koin-compose:3.6.0-wasm-alpha1 was found.

Tlaster avatar Jan 27 '24 14:01 Tlaster

Hi @Tlaster!

3.6.0-wasm-alpha2 has been tagged and looks like they fixed the issue of the missing wasmJs declaration in the koin-compose module's build.gradle.kts

This seems to be available in Maven Cental already https://repo1.maven.org/maven2/io/insert-koin/koin-compose/3.6.0-wasm-alpha2/

Phaestion avatar Jan 31 '24 17:01 Phaestion

Well there's a new release 1.6.0-beta01 that you can try with wasm.

Tlaster avatar Feb 01 '24 10:02 Tlaster

Hi,

I don't know if it's realistic or doable, but can the Navigator can be control also by the url in the browser? I want to be able to enter http://www.mydomain/some_page and be directed to the right page.

reginaldlouis avatar Mar 29 '24 16:03 reginaldlouis