The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update kotlin docs
Jan Tennertd7548f43d29a
diff --git a/apps/docs/docs/ref/kotlin/installing.mdx b/apps/docs/docs/ref/kotlin/installing.mdxindex 72e10be54fd..07125a7c0ac 100644--- a/apps/docs/docs/ref/kotlin/installing.mdx+++ b/apps/docs/docs/ref/kotlin/installing.mdx@@ -49,7 +49,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supab</TabPanel></Tabs>- The available modules are: **gotrue-kt**, **realtime-kt**, **storage-kt**, **functions-kt**, **postgrest-kt** and **apollo-graphql**+ The available modules are: **gotrue-kt**, **realtime-kt**, **storage-kt**, **functions-kt**, **postgrest-kt**, **apollo-graphql**, [**compose-auth**](https://github.com/supabase-community/supabase-kt/tree/master/plugins/ComposeAuth) and [**compose-auth-ui**](https://github.com/supabase-community/supabase-kt/tree/master/plugins/ComposeAuthUI)When using multiple modules, you can also use the BOM dependency to ensure that all modules use the same version:diff --git a/apps/docs/docs/ref/kotlin/introduction.mdx b/apps/docs/docs/ref/kotlin/introduction.mdxindex 914310ba347..5903e53382f 100644--- a/apps/docs/docs/ref/kotlin/introduction.mdx+++ b/apps/docs/docs/ref/kotlin/introduction.mdx@@ -15,24 +15,39 @@ hideTitle: true<div className="max-w-xl">This reference documents every object and method available in Supabase's Kotlin Multiplatform library, [supabase-kt](https://github.com/supabase-community/supabase-kt). You can use supabase-kt to interact with your Postgres database, listen to database changes, invoke Deno Edge Functions, build login and user management functionality, and manage large files.+Supported targets:-Supported Kotlin targets:+| | **GoTrue** | **Realtime** | **Postgrest** | **Storage** | **Functions** | **Apollo-GraphQL** | **Compose Auth** | **Compose Auth UI** |+| ----------- | ---------- | ------------ | ------------- | ----------- | ------------- | ------------------ | ---------------- | ------------------- |+| **JVM** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ☑️ | ✅ |+| **Android** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |+| **JS** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ☑️ | ✅ |+| **IOS** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |+| **tvOS** | ☑️ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |+| **watchOS** | ☑️ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |+| **MacOS** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |+| **Windows** | ☑️ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ |+| **Linux** | ☑️ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ |-| | **GoTrue** | **Realtime** | **Postgrest** | **Storage** | **Functions** | **Apollo-GraphQL** |-| ------------------------------------------------------------------ | ---------- | ------------ | ------------- | ----------- | ------------- | ------------------ |-| **JVM** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |-| **Android** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |-| **JS** _(Browser, NodeJS)_ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |-| **IOS** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |-| **tvOS** _(tvosArm64, tvosX64, tvosSimulatorArm64)_ 🚧 | ☑️ | ✅ | ✅ | ✅ | ✅ | ✅ |-| **watchOS** _(watchosArm64, watchosX64, watchosSimulatorArm64)_ 🚧 | ☑️ | ✅ | ✅ | ✅ | ✅ | ✅ |-| **MacOS** _(macosX64 & macosArm64)_ 🚧 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |-| **Windows** _(mingwX64)_ 🚧 | ☑️ | ✅ | ✅ | ✅ | ✅ | ❌ |-| **Linux** _(linuxX64)_ 🚧 | ☑️ | ✅ | ✅ | ✅ | ✅ | ❌ |+<details>++<summary>In-depth Kotlin targets</summary>++**tvOS**: tvosArm64, tvosX64, tvosSimulatorArm64++**watchOS**: watchosArm64, watchosX64, watchosSimulatorArm64++**MacOS**: macosX64, macosArm64++**Windows**: mingwX64++**Linux**: linuxX64++</details>✅ = full support-☑️ = partial support: no built-in OAuth/OTP link handling. Linux also has no persistent storage.+☑️ = partial support: no built-in OAuth/OTP link handling. Linux also has no support for persistent storage. For Compose Auth, it relies on GoTrue as fallback.🚧 = experimental/needs feedbackdiff --git a/spec/supabase_kt_v0.yml b/spec/supabase_kt_v0.ymlindex 265d6a037c9..270ca72b467 100644--- a/spec/supabase_kt_v0.yml+++ b/spec/supabase_kt_v0.yml@@ -37,7 +37,8 @@ functions:**On JS**, it uses the website origin as the callback url. Session importing gets handled automatically.**Windows, tvOS, watchOS & Linux** currently have no default implementation. Feel free to create a PR.- You always make your own implementation and use `gotrue.parseFragmentAndImportSession(fragment)` to let [supabase-kt](https://github.com/supabase-community/supabase-kt) handle the parsing & importing of the session after receiving a callback.+ You always make your own implementation and use `gotrue.parseSessionFromFragment(fragment)` or `gotrue.parseSessionFromUrl(url)` to let [supabase-kt](https://github.com/supabase-community/supabase-kt) handle the parsing after receiving a callback.+ Then you can simply use `gotrue.importSession(session)`.### Configure deeplink callbacks for Authentication@@ -53,6 +54,9 @@ functions:install(GoTrue) {host = "deeplink host" // this can be anything, eg. your package name or app/company url (not your supabase url)scheme = "deeplink scheme"++ //Android only, you can also change that OAuth/SSO logins open in a custom tab, rather than an external browser:+ defaultExternalAuthAction = ExternalAuthAction.CUSTOM_TABS //defaults to EXTERNAL_BROWSER}```4. **Call platform specific function on startup** \