any discussion yet of Koin supporting wasm target?...
# koin-contributors
j
any discussion yet of Koin supporting wasm target? 🙂
a
not yet, if you have a project working on that target I can begin to add the necessary stuff for Koin 👍
j
We're hoping to use it in Confetti but a few other dependencies still need to line up yet as you can imagine
a
ok great, let me know when you begin to have something runnable
j
I actually started trying it out in following project.....commenting out Koin and Realm stuff for now in branch I'm using https://twitter.com/joreilly/status/1661809446908035094?s=20
I picked this one as it's using Ktor (and there's experimental wasm support for Ktor right now)
a
oh cool 💪
j
Looks like Okio will be supporting it soon https://github.com/square/okio/pull/1289
a
Cool 👍
j
Out of curiosity I thought I'd take quick look at what would be involved in adding wasm support.....starting off with
koin-core
as a test....added following in
build.gradle
Copy code
wasm {
        browser()
    }
and then added
PlatformTools
and
PlatformTimeTools
actual definitions....stubbed out time one for now (though probably something basic to implement that) and it at least built after that.
a
yes, this is the good starting points