Skip to content

Commit 9333846

Browse files
authored
Update powersync-kotlin version (#37)
Update powersync-kotlin version and add changelog entries
1 parent 1d166f1 commit 9333846

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

.github/workflows/build_and_test.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ jobs:
1313
- name: Build and Test
1414
run: |
1515
xcodebuild test -scheme PowerSync -destination "platform=iOS Simulator,name=iPhone 15"
16+
xcodebuild test -scheme PowerSync -destination "platform=macOS,arch=arm64,name=My Mac"

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
# 1.0.0-Beta.10 (unreleased)
3+
# 1.0.0-Beta.10
44

55
* Added the ability to specify a custom logging implementation
66
```swift
@@ -20,6 +20,13 @@
2020
)
2121
```
2222
* added `.close()` method on `PowerSyncDatabaseProtocol`
23+
* Update `powersync-kotlin` dependency to version `1.0.0-BETA29`, which fixes these issues:
24+
* Fix potential race condition between jobs in `connect()` and `disconnect()`.
25+
* Fix race condition causing data received during uploads not to be applied.
26+
* Fixed issue where automatic driver migrations would fail with the error:
27+
```
28+
Sqlite operation failure database is locked attempted to run migration and failed. closing connection
29+
```
2330

2431
## 1.0.0-Beta.9
2532

Package.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"kind" : "remoteSourceControl",
66
"location" : "https://github.com/powersync-ja/powersync-kotlin.git",
77
"state" : {
8-
"revision" : "443df078f4b9352de137000b993d564d4ab019b7",
9-
"version" : "1.0.0-BETA28.0"
8+
"revision" : "f306c059580b4c4ee2b36eec3c68f4d5326a454c",
9+
"version" : "1.0.0-BETA29.0"
1010
}
1111
},
1212
{

Package.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ let package = Package(
88
name: packageName,
99
platforms: [
1010
.iOS(.v13),
11+
.macOS(.v10_15)
1112
],
1213
products: [
1314
// Products define the executables and libraries a package produces, making them visible to other packages.
@@ -16,7 +17,7 @@ let package = Package(
1617
targets: ["PowerSync"]),
1718
],
1819
dependencies: [
19-
.package(url: "https://github.com/powersync-ja/powersync-kotlin.git", exact: "1.0.0-BETA28.0"),
20+
.package(url: "https://github.com/powersync-ja/powersync-kotlin.git", exact: "1.0.0-BETA29.0"),
2021
.package(url: "https://github.com/powersync-ja/powersync-sqlite-core-swift.git", "0.3.12"..<"0.4.0")
2122
],
2223
targets: [

Sources/PowerSync/PowerSyncBackendConnectorAdapter.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PowerSyncBackendConnectorAdapter: KotlinPowerSyncBackendConnector {
1414
let result = try await swiftBackendConnector.fetchCredentials()
1515
return result?.kotlinCredentials
1616
} catch {
17-
if #available(iOS 14.0, *) {
17+
if #available(iOS 14.0, macOS 11.0, *) {
1818
Logger().error("🔴 Failed to fetch credentials: \(error.localizedDescription)")
1919
} else {
2020
print("🔴 Failed to fetch credentials: \(error.localizedDescription)")
@@ -28,7 +28,7 @@ class PowerSyncBackendConnectorAdapter: KotlinPowerSyncBackendConnector {
2828
do {
2929
return try await swiftBackendConnector.uploadData(database: swiftDatabase)
3030
} catch {
31-
if #available(iOS 14.0, *) {
31+
if #available(iOS 14.0, macOS 11.0, *) {
3232
Logger().error("🔴 Failed to upload data: \(error)")
3333
} else {
3434
print("🔴 Failed to upload data: \(error)")

0 commit comments

Comments
 (0)