Skip to content

Commit a93bf7c

Browse files
committed
Fix demos
1 parent 04a2743 commit a93bf7c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

demos/android-supabase-todolist/app/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ android {
8181
}
8282
}
8383

84+
kotlin {
85+
sourceSets.all {
86+
languageSettings {
87+
optIn("kotlin.time.ExperimentalTime")
88+
}
89+
}
90+
}
91+
8492
dependencies {
8593
implementation(libs.androidx.core.splashscreen)
8694
implementation(libs.androidx.core.ktx)

demos/android-supabase-todolist/app/src/main/java/com/powersync/androidexample/powersync/Todo.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
1515
import kotlinx.coroutines.flow.StateFlow
1616
import kotlinx.coroutines.flow.flowOf
1717
import kotlinx.coroutines.launch
18+
import kotlin.time.Clock
1819

1920
internal class Todo(
2021
private val db: PowerSyncDatabase,

demos/supabase-todolist/shared/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ kotlin {
3838
}
3939
}
4040
sourceSets {
41+
all {
42+
languageSettings {
43+
optIn("kotlin.time.ExperimentalTime")
44+
}
45+
}
46+
4147
commonMain.dependencies {
4248
// Need to use api here otherwise Database driver can't be accessed
4349
// When copying this example, replace "latest.release" with the current version available

0 commit comments

Comments
 (0)