Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.62 KB

File metadata and controls

37 lines (25 loc) · 1.62 KB

PowerSync + Supabase Kotlin Multiplatform Demo: Todo List App

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.

Setting up your development environment

To setup your environment, please consult these instructions.

Set up Supabase project

A step-by-step guide on Supabase<>PowerSync integration is available here.

Configure project in Android Studio

  1. Clone this repo: git clone https://github.com/powersync-ja/powersync-kotlin.git
  2. Open the repo in Android Studio. This creates a local.properties file in root and should contain a sdk.dir=/path/to/android/sdk line.
  3. Sync the project with Gradle (this should happen automatically, or choose File > Sync project with Gradle Files).
  4. Open the demos/supabase-todolist directory in Android Studio and sync this project with Gradle.
  5. 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

Run the app

Choose a run configuration for the Android or iOS target in Android Studio and run it.