-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for WASM-JS and migrate to Ktor 3.0.0 #311
Conversation
Putting this on hold until official KotlinX versions release. |
KotlinX Serialization, Coroutines and atomicfu now have official support, ktor and |
ktor has an experimental wasm2 build available here: https://youtrack.jetbrains.com/issue/KTOR-5587/Ktor-client-for-Kotlin-Wasm#focus=Comments-27-8670434.0-0 |
I know, the only problem is that these builds do not support some Kotlin targets required for this project. I might publish separate wasm builds until the official release. |
Update: Published a compatible build 2.0.2-wasm0 |
Thank you very much! |
# Conflicts: # gradle.properties
# Conflicts: # GoTrue/src/jsMain/kotlin/io/github/jan/supabase/gotrue/setupPlatform.kt # gradle.properties
# Conflicts: # gradle.properties
# Conflicts: # gradle.properties
# Conflicts: # gradle.properties # gradle/libs.versions.toml
# Conflicts: # gradle/libs.versions.toml
# Conflicts: # GoTrue/src/settingsMain/kotlin/io/github/jan/supabase/gotrue/SettingsCodeVerifierCache.kt # GoTrue/src/settingsMain/kotlin/io/github/jan/supabase/gotrue/SettingsSessionManager.kt # Storage/src/settingsMain/kotlin/io/github/jan/supabase/storage/resumable/SettingsResumableCache.kt # gradle/libs.versions.toml
I'll definitely squash that PR. |
What kind of change does this PR introduce?
Feature (closes #86)
What is the current behavior?
N/A
What is the new behavior?
New
wasm-js
target for supabase-ktSupported modules:
Note: I'll probably add wasm-js to supported samples once this is merged.
Additional context
The implementation should be almost the same as the js browser implementation.
wasm-wasi
support may also come if the libraries support it.The Github documentation has been changed accordingly.