Hi, any Wasm support on the roadmap ? Is it open t...
# koin-contributors
a
Hi, any Wasm support on the roadmap ? Is it open to contribution ? https://kotlinlang.org/docs/wasm-overview.html
πŸ‘€ 2
a
Hell, yes @John O'Reilly was looking for it also. Let me check for that πŸ‘
j
I think also it was looking like update to Kotlin 1.9.x was needed first?
πŸ‘ 1
cc @mbonnin who was looking at getting Wasm client up and running for Confetti project (think there are number of other dependencies as well that will probably need to have support for it as well). Looked like Apollo at least also had experimental support (though I don't think in public domain yet)?
m
I think ktor is the only dependency left we need a release from
uuid
and
okio
are wasm-compatible now
Oh and coroutines and serialization πŸ˜„
j
hopefully this is something that JB libraries will have relatively soon.....was just looking at date-time and it's not there yet
m
Indeed, I think this is all going to happen at the same time. It's in the roadmap somewhere
j
I tried it out in PeopleInSpace using following dev versions of some of the JB dependencies....but they haven't been updated in a while I think (and are def. out of sync with more recent versions)
Copy code
implementation("io.ktor:ktor-client-core:2.3.1-wasm0")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.1-wasm0")
implementation("io.ktor:ktor-client-content-negotiation:2.3.1-wasm0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0-RC-wasm0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.0-RC-wasm0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1-wasm0")
and
Copy code
kotlinCompilerPlugin.set("1.4.0-dev-wasm08")
m
This is how far I got. It was working but can't really release based on
wasm0
versions
a
I'm "poping" my Koin stuff stack this week, I need to check what can of impact is it to add
@mbonnin @John O'Reilly do you have a version of confetti where you are using wasm?
would like to test koin-core wasm
j
I'll let him confirm for sure but I believe @mbonnin got Wasm prototype of Confetti up and running in a separate repo and don't think that was using Koin.
He was planning I believe to get it in main repo at some point
btw I noticed there's some new versions of some of the dependencies fwiw https://github.com/Kotlin/kotlin-wasm-examples/pull/25
πŸ‘ 1
(should only affect UI I believe)
m
Indeed, it was a much stripped down version that didn't use Koin
Let me see if I was organized enough to have this in a branch somewhere πŸ˜…
https://github.com/martinbonnin/Confetti-wasm is the repo. Doesn't use Koin (yet)
πŸ‘ 1
Since that Tweet,
okio
and
uuid
shipped wasm support. The rest is blocked on having a release of the Jetbrains libs (ktor, serialization, datetime, maybe others)
a
ok great, thanks guy πŸ‘
Shipping soonly Koin 3.5.0, but looking to add wasm target also
πŸŽ‰ 1
j
I have Wasm based Compose for Web client in PeopleInSpace as well.....it's a pretty bare bones standalone module right now but I can look at using Koin in it if there's dev etc build I can try
πŸŽ‰ 1
actually might be better to start with wasm branch of BikeShare I have.....it does use shared code (albiet heavily hacked) but could start re-enabling koin for it https://github.com/joreilly/BikeShare/compare/main...wasm
πŸ‘ 1
@arnaud.giuliani do you have a dev etc version that supports Wasm target available atm? If so, I'll try and take a look later at using in one of those projects. No worries if not
a
not yet, would like to have a seperated branch/version for that. I was fixing my last issues for 3.5.0. Then I can open it πŸ™‚
πŸ‘ 1