Skip to content

Update dependencies #234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 1, 2025
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Android: Ensure JNI libraries are 16KB-aligned.
* Support receiving binary sync lines over HTTP when the Rust client is enabled.
* Remove the experimental websocket transport mode.
* Update to Kotlin 2.2.0.
* Migrate to `kotlin.time` APIs where appropriate.

## 1.3.0

Expand Down
20 changes: 0 additions & 20 deletions PowerSyncKotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,6 @@ kotlin {
}
}

repositories {
maven {
name = "PowerSyncSQLiterFork"
url = uri("https://powersync-ja.github.io/SQLiter")
content {
includeModuleByRegex("co.touchlab", "sqliter-driver.*")
}
}
}

configurations.all {
resolutionStrategy {
// This version has not been released yet (https://github.com/touchlab/SQLiter/pull/124), so we're pointing this
// towards our fork with the repositories block above.
// The API is identical, but we have to make sure this particular project builds the xcframework with the
// patched SQLiter version to avoid linker errors on macOS.
force("co.touchlab:sqliter-driver:1.3.2-powersync")
}
}

listOf("Debug", "Release").forEach { buildType ->
tasks.register<Exec>("build$buildType") {
group = "build"
Expand Down
1 change: 1 addition & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ kotlin {
all {
languageSettings {
optIn("kotlinx.cinterop.ExperimentalForeignApi")
optIn("kotlin.time.ExperimentalTime")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,7 @@ public open class AttachmentQueue(
metaData = item.metaData,
),
)
} else if
(existingQueueItem.state == AttachmentState.ARCHIVED) {
} else if (existingQueueItem.state == AttachmentState.ARCHIVED) {
// The attachment is present again. Need to queue it for sync.
// We might be able to optimize this in future.
if (existingQueueItem.hasSynced) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import com.powersync.attachments.AttachmentContext
import com.powersync.attachments.AttachmentState
import com.powersync.db.getString
import com.powersync.db.internal.ConnectionContext
import kotlinx.datetime.Clock
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlin.time.Clock

/**
* Default implementation of [AttachmentContext].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.datetime.Instant
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.TimeZone
import kotlinx.datetime.toInstant
import kotlin.time.Duration.Companion.milliseconds
import kotlin.time.Instant

/**
* A PowerSync managed database.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.powersync.sync

import com.powersync.bucket.BucketPriority
import kotlinx.datetime.Instant
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
Expand All @@ -16,6 +15,7 @@ import kotlinx.serialization.encoding.decodeStructure
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.serializer
import kotlin.time.Instant

/**
* An instruction sent to this SDK by the core extension to implement sync behavior.
Expand Down
4 changes: 2 additions & 2 deletions core/src/commonMain/kotlin/com/powersync/sync/SyncStatus.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import com.powersync.connectors.PowerSyncBackendConnector
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.flow.asSharedFlow
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
import kotlin.time.Clock
import kotlin.time.Instant

@ConsistentCopyVisibility
public data class PriorityStatusEntry internal constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlinx.datetime.Clock
import kotlinx.io.readByteArray
import kotlinx.io.readIntLe
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.encodeToJsonElement
import kotlin.time.Clock

@OptIn(ExperimentalPowerSyncAPI::class)
internal class SyncStream(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.launch
import kotlinx.datetime.Clock
import kotlin.time.Clock
import kotlin.time.ExperimentalTime

@OptIn(ExperimentalTime::class)
internal class Todo(
private val db: PowerSyncDatabase,
private val attachmentsQueue: AttachmentQueue?,
Expand Down
20 changes: 10 additions & 10 deletions demos/android-supabase-todolist/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[versions]
agp = "8.10.1"
agp = "8.11.1"
coreSplashscreen = "1.0.1"
kotlin = "2.1.10"
coreKtx = "1.15.0"
kotlin = "2.2.0"
coreKtx = "1.16.0"
junit = "4.13.2"
junitVersion = "1.2.1"
espressoCore = "3.6.1"
lifecycleRuntimeKtx = "2.8.7"
junitVersion = "1.3.0"
espressoCore = "3.7.0"
lifecycleRuntimeKtx = "2.9.2"
activityCompose = "1.10.1"
composeBom = "2025.02.00"
composeBom = "2025.07.00"
materialIconsExtended = "1.7.8"
uuid = "0.8.2"
kermit = "2.0.5"
sqldelight = "2.0.2"
uuid = "0.8.4"
kermit = "2.0.6"
sqldelight = "2.1.0"

[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
Expand Down
34 changes: 17 additions & 17 deletions demos/supabase-todolist/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@ android-minSdk = "24"
android-targetSdk = "35"
android-compileSdk = "35"
java = "17"
atomicfu = "0.27.0"
atomicfu = "0.29.0"

# Dependencies
kotlin = "2.1.10"
coroutines = "1.8.1"
kotlinx-datetime = "0.6.2"
kotlinx-io = "0.5.4"
ktor = "3.1.0"
sqliteJdbc = "3.45.2.0"
uuid = "0.8.2"
buildKonfig = "0.15.1"
koin-bom = "4.0.2"
kotlin = "2.2.0"
coroutines = "1.10.2"
kotlinx-datetime = "0.7.1"
kotlinx-io = "0.8.0"
ktor = "3.2.3"
sqliteJdbc = "3.50.3.0"
uuid = "0.8.4"
buildKonfig = "0.17.1"
koin-bom = "4.1.0"

junit = "4.13.2"

compose = "1.6.11"
compose-preview = "1.7.8"
compose = "1.8.2"
compose-preview = "1.8.3"
lifecycle = "2.8.4"

# plugins
android-gradle-plugin = "8.10.1"
android-gradle-plugin = "8.11.1"

# Sample - Android
androidx-core = "1.15.0"
androidx-core = "1.16.0"
androidx-activity-compose = "1.10.1"

androidx-appcompat = "1.7.0"
androidx-espresso-core = "3.6.1"
androidx-appcompat = "1.7.1"
androidx-espresso-core = "3.7.0"
androidx-material = "1.12.0"
androidx-test-junit = "1.2.1"
androidx-test-junit = "1.3.0"

[libraries]
sqlite-jdbc = { module = "org.xerial:sqlite-jdbc", version.ref = "sqliteJdbc" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import kotlinx.datetime.Clock
import kotlin.time.Clock
import kotlin.time.ExperimentalTime

@OptIn(ExperimentalTime::class)
internal class Todo(
private val db: PowerSyncDatabase,
private val userId: String?
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kotlin.code.style=official
# Gradle
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
org.gradle.jvmargs=-Xmx40968M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx4096M"
org.gradle.caching=true
org.gradle.configuration-cache=true
# Compose
Expand Down
48 changes: 24 additions & 24 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,51 @@
android-minSdk = "24"
android-targetSdk = "35"
android-compileSdk = "35"
configurationAnnotations = "0.9.5"
configurationAnnotations = "0.10.4"
dokkaBase = "2.0.0"
gradleDownloadTask = "5.5.0"
gradleDownloadTask = "5.6.0"
java = "17"
idea = "243.22562.218" # Meerkat | 2024.3.1 (see https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html)

# Dependencies
kermit = "2.0.5"
kotlin = "2.1.21"
coroutines = "1.8.1"
kotlinx-datetime = "0.6.2"
kotlinx-io = "0.5.4"
ktor = "3.1.0"
uuid = "0.8.2"
kermit = "2.0.6"
kotlin = "2.2.0"
coroutines = "1.10.2"
kotlinx-datetime = "0.7.1"
kotlinx-io = "0.8.0"
ktor = "3.2.3"
uuid = "0.8.4"
powersync-core = "0.4.2"
sqlite-jdbc = "3.50.3.0"
sqliter = "1.3.1"
turbine = "1.2.0"
sqliter = "1.3.3"
turbine = "1.2.1"
kotest = "5.9.1"

sqlDelight = "2.0.2"
sqlDelight = "2.1.0"
stately = "2.1.0"
supabase = "3.0.1"
supabase = "3.2.2"
junit = "4.13.2"

compose = "1.6.11"
compose-preview = "1.7.8"
androidxSqlite = "2.4.0"
compose-preview = "1.8.3"
androidxSqlite = "2.5.2"

# plugins
android-gradle-plugin = "8.10.1"
skie = "0.10.2"
maven-publish = "0.27.0"
download-plugin = "5.5.0"
android-gradle-plugin = "8.11.1"
skie = "0.10.5"
maven-publish = "0.34.0"
download-plugin = "5.6.0"
grammarkit-composer = "0.1.12"
mokkery = "2.8.0"
kotlinter = "5.0.1"
mokkery = "2.9.0"
kotlinter = "5.1.1"
keeper = "0.16.1"
atomicfu = "0.27.0"
atomicfu = "0.29.0"

# Sample - Android
androidx-core = "1.15.0"
androidx-core = "1.16.0"
androidx-activity-compose = "1.10.1"

androidx-appcompat = "1.7.0"
androidx-appcompat = "1.7.1"
androidx-espresso-core = "3.6.1"
androidx-material = "1.12.0"
androidx-test-runner = "1.6.2"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading