Skip to content

Commit 4b9dc79

Browse files
committed
Update powersync-kotlin version
1 parent 1d166f1 commit 4b9dc79

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 1 addition & 0 deletions
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"

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)