Skip to content

Commit 13f08ba

Browse files
committed
Bump to version 25.01.31 (matrix-rust-sdk/main 29862fc)
1 parent 58ce513 commit 13f08ba

File tree

2 files changed

+33
-7
lines changed

2 files changed

+33
-7
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// swift-tools-version:5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
import PackageDescription
4-
let checksum = "78d67a2aefa9db6bd9f739e505320dfeabe7194a6438257058ac18df4a22cc30"
5-
let version = "25.01.27"
4+
let checksum = "81b598d5e857a901c87336ed71be3fabe0f7884800276310dfd40cb476629a68"
5+
let version = "25.01.31"
66
let url = "https://github.com/element-hq/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
77
let package = Package(
88
name: "MatrixRustSDK",

Sources/MatrixRustSDK/matrix_sdk_ffi.swift

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9789,7 +9789,7 @@ public protocol SyncServiceProtocol : AnyObject {
97899789

97909790
func state(listener: SyncServiceStateObserver) -> TaskHandle
97919791

9792-
func stop() async throws
9792+
func stop() async
97939793

97949794
}
97959795

@@ -9867,9 +9867,9 @@ open func state(listener: SyncServiceStateObserver) -> TaskHandle {
98679867
})
98689868
}
98699869

9870-
open func stop()async throws {
9870+
open func stop()async {
98719871
return
9872-
try await uniffiRustCallAsync(
9872+
try! await uniffiRustCallAsync(
98739873
rustFutureFunc: {
98749874
uniffi_matrix_sdk_ffi_fn_method_syncservice_stop(
98759875
self.uniffiClonePointer()
@@ -9880,7 +9880,8 @@ open func stop()async throws {
98809880
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
98819881
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
98829882
liftFunc: { $0 },
9883-
errorHandler: FfiConverterTypeClientError.lift
9883+
errorHandler: nil
9884+
98849885
)
98859886
}
98869887

@@ -9938,6 +9939,11 @@ public protocol SyncServiceBuilderProtocol : AnyObject {
99389939

99399940
func withCrossProcessLock() -> SyncServiceBuilder
99409941

9942+
/**
9943+
* Enable the "offline" mode for the [`SyncService`].
9944+
*/
9945+
func withOfflineMode() -> SyncServiceBuilder
9946+
99419947
func withUtdHook(delegate: UnableToDecryptDelegate) async -> SyncServiceBuilder
99429948

99439949
}
@@ -10005,6 +10011,16 @@ open func withCrossProcessLock() -> SyncServiceBuilder {
1000510011
uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_cross_process_lock(self.uniffiClonePointer(),$0
1000610012
)
1000710013
})
10014+
}
10015+
10016+
/**
10017+
* Enable the "offline" mode for the [`SyncService`].
10018+
*/
10019+
open func withOfflineMode() -> SyncServiceBuilder {
10020+
return try! FfiConverterTypeSyncServiceBuilder.lift(try! rustCall() {
10021+
uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_offline_mode(self.uniffiClonePointer(),$0
10022+
)
10023+
})
1000810024
}
1000910025

1001010026
open func withUtdHook(delegate: UnableToDecryptDelegate)async -> SyncServiceBuilder {
@@ -25348,6 +25364,7 @@ public enum SyncServiceState {
2534825364
case running
2534925365
case terminated
2535025366
case error
25367+
case offline
2535125368
}
2535225369

2535325370

@@ -25366,6 +25383,8 @@ public struct FfiConverterTypeSyncServiceState: FfiConverterRustBuffer {
2536625383

2536725384
case 4: return .error
2536825385

25386+
case 5: return .offline
25387+
2536925388
default: throw UniffiInternalError.unexpectedEnumCase
2537025389
}
2537125390
}
@@ -25389,6 +25408,10 @@ public struct FfiConverterTypeSyncServiceState: FfiConverterRustBuffer {
2538925408
case .error:
2539025409
writeInt(&buf, Int32(4))
2539125410

25411+
25412+
case .offline:
25413+
writeInt(&buf, Int32(5))
25414+
2539225415
}
2539325416
}
2539425417
}
@@ -32007,7 +32030,7 @@ private var initializationResult: InitializationResult = {
3200732030
if (uniffi_matrix_sdk_ffi_checksum_method_syncservice_state() != 61806) {
3200832031
return InitializationResult.apiChecksumMismatch
3200932032
}
32010-
if (uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop() != 23138) {
32033+
if (uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop() != 42435) {
3201132034
return InitializationResult.apiChecksumMismatch
3201232035
}
3201332036
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish() != 22814) {
@@ -32016,6 +32039,9 @@ private var initializationResult: InitializationResult = {
3201632039
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_cross_process_lock() != 56326) {
3201732040
return InitializationResult.apiChecksumMismatch
3201832041
}
32042+
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_offline_mode() != 16958) {
32043+
return InitializationResult.apiChecksumMismatch
32044+
}
3201932045
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_utd_hook() != 9029) {
3202032046
return InitializationResult.apiChecksumMismatch
3202132047
}

0 commit comments

Comments
 (0)