A Kotlin Multiplatform Client for Supabase. Supported targets:
- JVM
- Android
- JS (Browser)
- IOS (PR open, help appreciated)
Dokka documentation for the latest version: stable
dependencies {
implementation("io.github.jan-tennert.supabase:[module e.g. functions-kt or gotrue-kt]:VERSION")
//add ktor client engine (if you don't already have one, see https://ktor.io/docs/http-client-engines.html for all engines)
//e.g. the CIO engine
implementation("io.ktor:ktor-client-cio:KTOR_VERSION")
}
If you use multiple modules, you can use the bom dependency to get the correct versions for all modules:
implementation(platform("io.github.jan-tennert.supabase:bom:VERSION"))
implementation("io.github.jan-tennert.supabase:[module e.g. functions-kt or gotrue-kt]")
In Multiplatform projects (before Kotlin 1.8.0):
implementation(project.dependencies.platform("io.github.jan-tennert.supabase:bom:VERSION"))
implementation("io.github.jan-tennert.supabase:[module e.g. functions-kt or gotrue-kt]")
- Postgres Syntax inspired by https://github.com/supabase-community/postgrest-kt
- Plugin system inspired by ktor