Skip to content

Commit 87230f3

Browse files
committed
Update progress docs
1 parent 643f8af commit 87230f3

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

core/build.gradle.kts

+1-4
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,7 @@ androidComponents.onVariants {
266266
}
267267

268268
tasks.named<ProcessResources>(kotlin.jvm().compilations["main"].processResourcesTaskName) {
269-
//from(downloadPowersyncDesktopBinaries)
270-
from("/Users/simon/src/powersync-sqlite-core/target/debug/libpowersync.dylib") {
271-
rename { "libpowersync_aarch64.dylib" }
272-
}
269+
from(downloadPowersyncDesktopBinaries)
273270
}
274271

275272
// We want to build with recent JDKs, but need to make sure we support Java 8. https://jakewharton.com/build-on-latest-java-test-through-lowest-java/

core/src/commonMain/kotlin/com/powersync/bucket/BucketStorageImpl.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ internal class BucketStorageImpl(
338338
tx.execute(
339339
"""
340340
UPDATE ps_buckets SET count_since_last = 0, count_at_last = ?1->name
341-
WHERE ?1->name IS NOT NULL
341+
WHERE name != '${'$'}local' AND ?1->name IS NOT NULL
342342
""".trimIndent(),
343343
listOf(
344344
JsonUtil.json.encodeToString(

core/src/commonMain/kotlin/com/powersync/sync/Progress.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ public interface ProgressWithOperations {
2525
public val downloadedOperations: Int
2626

2727
/**
28-
* The relative amount of [totalOperations] to items in [downloadedOperations], as a number between `0.0` and `1.0`.
28+
* The relative amount of [totalOperations] to items in [downloadedOperations], as a number between `0.0` and `1.0` (inclusive).
29+
*
30+
* When this number reaches `1.0`, all changes have been received from the sync service.
31+
* Actually applying these changes happens before the [SyncStatusData.downloadProgress] field is
32+
* cleared though, so progress can stay at `1.0` for a short while before completing.
2933
*/
3034
public val fraction: Float get() {
3135
if (totalOperations == 0) {

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ kotlinx-datetime = "0.6.2"
1717
kotlinx-io = "0.5.4"
1818
ktor = "3.0.1"
1919
uuid = "0.8.2"
20-
powersync-core = "0.3.12"
20+
powersync-core = "0.3.13"
2121
sqlite-jdbc = "3.49.1.0"
2222
sqliter = "1.3.1"
2323
turbine = "1.2.0"

0 commit comments

Comments
 (0)