Skip to content

Commit 953c3b4

Browse files
authored
Merge pull request #142 from powersync-ja/dependency-update
Update dependencies
2 parents 55ef17c + b9552d3 commit 953c3b4

File tree

14 files changed

+57
-58
lines changed

14 files changed

+57
-58
lines changed

PowerSyncKotlin/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import co.touchlab.faktory.artifactmanager.ArtifactManager
22
import co.touchlab.faktory.capitalized
33
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
4-
import org.jetbrains.kotlin.ir.backend.js.compile
5-
import java.net.URL
64
import java.security.MessageDigest
75

86
plugins {
@@ -170,7 +168,7 @@ abstract class UpdatePackageSwiftChecksumTask : DefaultTask() {
170168

171169
// Download the zip file
172170
zipFile.parentFile.mkdirs()
173-
URL(zipUrl.get()).openStream().use { input ->
171+
project.uri(zipUrl.get()).toURL().openStream().use { input ->
174172
zipFile.outputStream().use { output ->
175173
input.copyTo(output)
176174
}

build.gradle.kts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,7 @@ plugins {
1515
alias(libs.plugins.downloadPlugin) apply false
1616
alias(libs.plugins.kotlinter) apply false
1717
alias(libs.plugins.keeper) apply false
18-
}
19-
20-
// Having different versions of this lead to the issue mentioned here
21-
// https://stackoverflow.com/questions/76479563/could-not-found-kotlinx-atomicfu-compose-multiplatform-ios
22-
// This and the `apply(plugin = "kotlinx-atomicfu")` in allprojects below solve the issue but can be deleted in future when
23-
// the issue is resolved https://github.com/Kotlin/kotlinx-atomicfu/issues/469
24-
buildscript {
25-
dependencies {
26-
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.23.1")
27-
}
18+
alias(libs.plugins.kotlin.atomicfu) apply false
2819
}
2920

3021
allprojects {
@@ -57,9 +48,6 @@ allprojects {
5748
// We have a transitive dependency on this due to Kermit, but need the fixed version to support Java 8
5849
resolutionStrategy.force("co.touchlab:stately-collections:${libs.versions.stately.get()}")
5950
}
60-
61-
//
62-
apply(plugin = "kotlinx-atomicfu")
6351
}
6452
subprojects {
6553
val GROUP: String by project

core/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ plugins {
1818
alias(libs.plugins.kotlinter)
1919
id("com.powersync.plugins.sonatype")
2020
alias(libs.plugins.mokkery)
21+
alias(libs.plugins.kotlin.atomicfu)
2122
}
2223

2324
val sqliteVersion = "3450200"

core/src/commonMain/kotlin/com/powersync/db/PowerSyncDatabaseImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ import kotlinx.coroutines.flow.first
3434
import kotlinx.coroutines.launch
3535
import kotlinx.coroutines.runBlocking
3636
import kotlinx.datetime.Instant
37+
import kotlinx.datetime.LocalDateTime
3738
import kotlinx.datetime.TimeZone
3839
import kotlinx.datetime.toInstant
39-
import kotlinx.datetime.toLocalDateTime
4040
import kotlinx.serialization.encodeToString
4141

4242
/**
@@ -316,7 +316,7 @@ internal class PowerSyncDatabaseImpl(
316316

317317
SyncedAt(
318318
priority = BucketPriority(it.getLong(0)!!.toInt()),
319-
syncedAt = rawTime.replace(" ", "T").toLocalDateTime().toInstant(TimeZone.UTC),
319+
syncedAt = LocalDateTime.parse(rawTime.replace(" ", "T")).toInstant(TimeZone.UTC),
320320
)
321321
}
322322

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import kotlinx.coroutines.flow.SharedFlow
77
import kotlinx.coroutines.flow.asSharedFlow
88
import kotlinx.datetime.Instant
99

10+
@ConsistentCopyVisibility
1011
public data class PriorityStatusEntry internal constructor(
1112
val priority: BucketPriority,
1213
val lastSyncedAt: Instant?,

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
alias(libs.plugins.android.application)
55
alias(libs.plugins.jetbrains.kotlin.android)
66
alias(libs.plugins.sqldelight)
7+
alias(libs.plugins.compose.compiler)
78
}
89

910
val localProperties = Properties()
@@ -18,7 +19,7 @@ fun getLocalProperty(key: String, defaultValue: String): String {
1819

1920
android {
2021
namespace = "com.powersync.androidexample"
21-
compileSdk = 34
22+
compileSdk = 35
2223

2324
buildFeatures {
2425
buildConfig = true
@@ -27,7 +28,7 @@ android {
2728
defaultConfig {
2829
applicationId = "com.powersync.androidexample"
2930
minSdk = 24
30-
targetSdk = 34
31+
targetSdk = 35
3132
versionCode = 1
3233
versionName = "1.0"
3334

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
plugins {
33
alias(libs.plugins.android.application) apply false
44
alias(libs.plugins.jetbrains.kotlin.android) apply false
5+
alias(libs.plugins.compose.compiler) apply false
56
}

demos/android-supabase-todolist/gradle/libs.versions.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[versions]
2-
agp = "8.5.1"
2+
agp = "8.9.0"
33
coreSplashscreen = "1.0.1"
4-
kotlin = "1.9.0"
5-
coreKtx = "1.13.1"
4+
kotlin = "2.1.10"
5+
coreKtx = "1.15.0"
66
junit = "4.13.2"
77
junitVersion = "1.2.1"
88
espressoCore = "3.6.1"
9-
lifecycleRuntimeKtx = "2.6.1"
10-
activityCompose = "1.9.2"
11-
composeBom = "2024.04.01"
12-
materialIconsExtended = "1.7.2"
9+
lifecycleRuntimeKtx = "2.8.7"
10+
activityCompose = "1.10.1"
11+
composeBom = "2025.02.00"
12+
materialIconsExtended = "1.7.8"
1313
uuid = "0.8.2"
14-
kermit = "2.0.4"
14+
kermit = "2.0.5"
1515
sqldelight= "2.0.2"
1616

1717
[libraries]
@@ -38,3 +38,4 @@ kermit = { module = "co.touchlab:kermit", version.ref = "kermit" }
3838
android-application = { id = "com.android.application", version.ref = "agp" }
3939
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
4040
sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
41+
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Sep 19 13:08:23 SAST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

demos/supabase-todolist/gradle/libs.versions.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[versions]
22
## SDK Versions
33
android-minSdk = "24"
4-
android-targetSdk = "34"
5-
android-compileSdk = "34"
4+
android-targetSdk = "35"
5+
android-compileSdk = "35"
66
java = "17"
77

88
# Dependencies
9-
kotlin = "2.0.20"
9+
kotlin = "2.1.10"
1010
coroutines = "1.8.1"
11-
kotlinx-datetime = "0.5.0"
11+
kotlinx-datetime = "0.6.2"
1212
kotlinx-io = "0.5.4"
1313
ktor = "3.0.1"
1414
uuid = "0.8.2"
@@ -17,15 +17,15 @@ buildKonfig = "0.15.1"
1717
junit = "4.13.2"
1818

1919
compose = "1.6.11"
20-
compose-preview = "1.7.2"
21-
lifecycle = "2.8.2"
20+
compose-preview = "1.7.8"
21+
lifecycle = "2.8.4"
2222

2323
# plugins
24-
android-gradle-plugin = "8.5.1"
24+
android-gradle-plugin = "8.9.0"
2525

2626
# Sample - Android
27-
androidx-core = "1.13.1"
28-
androidx-activity-compose = "1.9.2"
27+
androidx-core = "1.15.0"
28+
androidx-activity-compose = "1.10.1"
2929

3030
androidx-appcompat = "1.7.0"
3131
androidx-espresso-core = "3.6.1"

0 commit comments

Comments
 (0)