supabase-kt icon indicating copy to clipboard operation
supabase-kt copied to clipboard

[Feature request]: Add support for WASM

Open jan-tennert opened this issue 1 year ago • 3 comments

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.

jan-tennert avatar Apr 03 '23 18:04 jan-tennert

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.

jan-tennert avatar Oct 11 '23 16:10 jan-tennert

You can now use the newest version in your wasm project: 2.2.2-wasm0

jan-tennert avatar Dec 27 '23 15:12 jan-tennert

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

jan-tennert avatar Feb 22 '24 13:02 jan-tennert