supabase-kt
supabase-kt copied to clipboard
[Feature request]: Add support for WASM
General Info
- [X] I installed the latest version of Supabase Kt
- [X] I checked for similar feature requests
Feature request
Kotlin for WASM is now in the alpha stage. I would add support for Kotlin/WASM but a few dependencies are blocking it:
Core
- [X] atomicfu (see Kotlin/kotlinx-atomicfu#278)
- [X] kotlinx datetime (see Kotlin/kotlinx-datetime#245)
- [X] coroutines (see https://github.com/Kotlin/kotlinx.coroutines/issues/3713)
- [ ] ktor (see https://github.com/ktorio/ktor/pull/3575) (not included in a stable release yet)
- [X] serialization
- [x] kermit
GoTrue & Storage
- [x] multiplatform-settings
- [X] krypto
Usecase
Should be self-explainatory.
Update: Both Kermit and multiplatform settings have now WASM support, which means I can start adding the WASM target in supabase-kt. We may still have to wait until Kotlin 1.9.20 as they are major changes to WASM once again.
You can now use the newest version in your wasm project: 2.2.2-wasm0
It may take even longer than expected as WASM support in Ktor will only come in the new 3.0.0 version which apparently releases sometime this year. Not sure if it's a good idea to use a ktor beta in supabase-kt