Skip to content

Commit c404a92

Browse files
committed
Update Kotlin SDK to 1.3.1
1 parent d6b3d4d commit c404a92

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ if let kotlinSdkPath = localKotlinSdkOverride {
3131
// Not using a local build, so download from releases
3232
conditionalTargets.append(.binaryTarget(
3333
name: "PowerSyncKotlin",
34-
url: "https://github.com/powersync-ja/powersync-kotlin/releases/download/v1.3.0/PowersyncKotlinRelease.zip",
35-
checksum: "5351c0a89e74ceaad570cd5c016c8ea4b8e10dc404daff3c20485ae0b6b989fa"
34+
url: "https://github.com/powersync-ja/powersync-kotlin/releases/download/v1.3.1/PowersyncKotlinRelease.zip",
35+
checksum: "b01b72cbf88a2e7b9b67efce966799493fc48d4523b5989d8c645ed182880975"
3636
))
3737
}
3838

Sources/PowerSync/Kotlin/KotlinPowerSyncDatabaseImpl.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,13 @@ final class KotlinPowerSyncDatabaseImpl: PowerSyncDatabaseProtocol {
5252
)
5353

5454
let resolvedOptions = options ?? ConnectOptions()
55-
let useWebsockets = switch (resolvedOptions.connectionMethod) {
56-
case .http: false
57-
case .webSocket: true
58-
}
59-
6055
try await kotlinDatabase.connect(
6156
connector: connectorAdapter,
6257
crudThrottleMs: Int64(resolvedOptions.crudThrottle * 1000),
6358
retryDelayMs: Int64(resolvedOptions.retryDelay * 1000),
6459
params: resolvedOptions.params.mapValues { $0.toKotlinMap() },
6560
options: createSyncOptions(
6661
newClient: resolvedOptions.newClientImplementation,
67-
webSocket: useWebsockets,
6862
userAgent: "PowerSync Swift SDK"
6963
)
7064
)

Sources/PowerSync/Protocol/PowerSyncDatabaseProtocol.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ public struct ConnectOptions {
4141
/// We encourage interested users to try the new client.
4242
@_spi(PowerSyncExperimental)
4343
public var newClientImplementation: Bool
44-
45-
/// The connection method used to connect to the Powersync service.
46-
///
47-
/// The default method is ``ConnectionMethod/http``. Using ``ConnectionMethod/webSocket(_:)`` can
48-
/// improve performance as a more efficient binary protocol is used. However, using the websocket connection method
49-
/// requires enabling ``ConnectOptions/newClientImplementation``.
50-
@_spi(PowerSyncExperimental)
51-
public var connectionMethod: ConnectionMethod
5244

5345
/// Initializes a `ConnectOptions` instance with optional values.
5446
///
@@ -65,7 +57,6 @@ public struct ConnectOptions {
6557
self.retryDelay = retryDelay
6658
self.params = params
6759
self.newClientImplementation = false
68-
self.connectionMethod = .http
6960
}
7061

7162
/// Initializes a ``ConnectOptions`` instance with optional values, including experimental options.
@@ -75,13 +66,11 @@ public struct ConnectOptions {
7566
retryDelay: TimeInterval = 5,
7667
params: JsonParam = [:],
7768
newClientImplementation: Bool = false,
78-
connectionMethod: ConnectionMethod = .http
7969
) {
8070
self.crudThrottle = crudThrottle
8171
self.retryDelay = retryDelay
8272
self.params = params
8373
self.newClientImplementation = newClientImplementation
84-
self.connectionMethod = connectionMethod
8574
}
8675
}
8776

0 commit comments

Comments
 (0)