Skip to content

Commit 11d4226

Browse files
committed
Fix creating underlying sync options
1 parent 48bca4f commit 11d4226

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ if let kotlinSdkPath = localKotlinSdkOverride {
2727
// Not using a local build, so download from releases
2828
conditionalTargets.append(.binaryTarget(
2929
name: "PowerSyncKotlin",
30-
url: "https://github.com/powersync-ja/powersync-kotlin/releases/download/v1.1.1/PowersyncKotlinRelease.zip",
31-
checksum: "780437e25d41e46c2c1f555adcf330436f185d3663ef442da7141381d9c0495b"
30+
url: "https://github.com/powersync-ja/powersync-kotlin/releases/download/v1.2.0/PowersyncKotlinRelease.zip",
31+
checksum: "7454481a245b46b1b63a42419ec27f88f2fcb7fba9b763e3085cb49db59dfd58"
3232
))
3333
}
3434

Sources/PowerSync/Kotlin/KotlinPowerSyncDatabaseImpl.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ final class KotlinPowerSyncDatabaseImpl: PowerSyncDatabaseProtocol {
6262
crudThrottleMs: Int64(resolvedOptions.crudThrottle * 1000),
6363
retryDelayMs: Int64(resolvedOptions.retryDelay * 1000),
6464
params: resolvedOptions.params.mapValues { $0.toKotlinMap() },
65-
options: SyncOptions(
66-
newClientImplementation: resolvedOptions.newClientImplementation,
67-
method: createConnectionMethod(webSocket: useWebsockets),
65+
options: createSyncOptions(
66+
newClient: resolvedOptions.newClientImplementation,
67+
webSocket: useWebsockets,
68+
userAgent: "PowerSync Swift SDK"
6869
)
6970
)
7071
}

0 commit comments

Comments
 (0)