Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ internal class PowerSyncDatabaseImpl(
logger.d { "SQLiteVersion: $sqliteVersion" }
checkVersion()
logger.d { "PowerSyncVersion: ${getPowerSyncVersion()}" }
internalDb.get("SELECT powersync_init()") {}
internalDb.queries.powersyncInit()
applySchema()
updateHasSynced()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ internal class SyncStream(
}

state.validatedCheckpoint = state.targetCheckpoint
status.update(lastSyncedAt = Clock.System.now(), clearDownloadError = true)
status.update(lastSyncedAt = Clock.System.now(), hasSynced = true, clearDownloadError = true)

return state
}
Expand Down
8 changes: 4 additions & 4 deletions demos/supabase-todolist/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ java = "17"

# Dependencies
kotlin = "2.0.20"
coroutines = "1.8.0"
coroutines = "1.8.1"
kotlinx-datetime = "0.5.0"
kotlinx-io = "0.3.0"
ktor = "2.3.10"
kotlinx-io = "0.5.4"
ktor = "2.3.12"
uuid = "0.8.2"
buildKonfig = "0.15.1"

supabase = "2.3.1"
supabase = "2.6.1"
junit = "4.13.2"

compose = "1.6.11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class PowerSyncTypeResolver(private val parentResolver: TypeResolver) :
TypeResolver by SqliteTypeResolver(parentResolver) {
override fun functionType(functionExpr: SqlFunctionExpr): IntermediateType? {
when (functionExpr.functionName.text) {
"sqlite_version", "powersync_rs_version", "powersync_replace_schema", "powersync_clear" -> return IntermediateType(
"sqlite_version", "powersync_rs_version", "powersync_replace_schema", "powersync_clear", "powersync_init" -> return IntermediateType(
PrimitiveType.TEXT
)
}
Expand Down
14 changes: 7 additions & 7 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
android-minSdk = "24"
android-targetSdk = "34"
android-compileSdk = "34"
configurationAnnotations = "0.8.4"
configurationAnnotations = "0.9.3"
java = "17"
idea = "222.4459.24" # Flamingo | 2022.2.1 (see https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html)

# Dependencies
kermit = "2.0.4"
kotlin = "2.0.20"
coroutines = "1.8.0"
coroutines = "1.8.1"
kotlinx-datetime = "0.5.0"
kotlinx-io = "0.3.0"
ktor = "2.3.10"
kotlinx-io = "0.5.4"
ktor = "2.3.12"
uuid = "0.8.2"
powersync-core = "0.3.0"
powersync-core = "0.3.1"
sqlite-android = "3.45.0"

sqlDelight = "2.0.2"
stately = "2.0.7"
supabase = "2.3.1"
supabase = "2.6.1"
junit = "4.13.2"

compose = "1.6.11"
Expand All @@ -29,7 +29,7 @@ compose-preview = "1.7.2"
# plugins
android-gradle-plugin = "8.5.1"
kmmBridge = "0.5.7"
skie = "0.9.0-RC.5"
skie = "0.9.3"
maven-publish = "0.27.0"
download-plugin = "5.5.0"
grammerKit = "0.1.12"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
-- Core queries
powersyncInit:
SELECT powersync_init();

sqliteVersion:
SELECT sqlite_version();

Expand Down
Loading