It is a simple to-do list application demonstrating use of the PowerSync Kotlin Mutiplatform SDK together with Supabase in a basic Kotlin Multiplatform Compose App.
Supported KMP targets: Android and iOS.
To setup your environment, please consult these instructions.
A step-by-step guide on Supabase<>PowerSync integration is available here.
- Clone this repo:
git clone https://github.com/powersync-ja/powersync-kotlin.git
- Open the repo in Android Studio. This creates a
local.properties
file in root and should contain asdk.dir=/path/to/android/sdk
line. - Sync the project with Gradle (this should happen automatically, or choose File > Sync project with Gradle Files).
- Open the
demos/supabase-todolist
directory in Android Studio and sync this project with Gradle. - Insert your Supabase project URL, Supabase Anon Key, and PowerSync instance URL into the
local.properties
file:
# local.properties
sdk.dir=/path/to/android/sdk
# Enter your PowerSync instance URL
POWERSYNC_URL=https://foo.powersync.journeyapps.com
# Enter your Supabase project's URL and public anon key (Project settings > API)
SUPABASE_URL=https://foo.supabase.co
SUPABASE_ANON_KEY=foo
Choose a run configuration for the Android or iOS target in Android Studio and run it.