Skip to content

Commit

Permalink
Bump to version 25.01.31 (matrix-rust-sdk/main 29862fc9bd246beb287997…
Browse files Browse the repository at this point in the history
…a9242e1b2a40b3a8a4)
  • Loading branch information
Velin92 committed Jan 31, 2025
1 parent 58ce513 commit 13f08ba
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let checksum = "78d67a2aefa9db6bd9f739e505320dfeabe7194a6438257058ac18df4a22cc30"
let version = "25.01.27"
let checksum = "81b598d5e857a901c87336ed71be3fabe0f7884800276310dfd40cb476629a68"
let version = "25.01.31"
let url = "https://github.com/element-hq/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
let package = Package(
name: "MatrixRustSDK",
Expand Down
36 changes: 31 additions & 5 deletions Sources/MatrixRustSDK/matrix_sdk_ffi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9789,7 +9789,7 @@ public protocol SyncServiceProtocol : AnyObject {

func state(listener: SyncServiceStateObserver) -> TaskHandle

func stop() async throws
func stop() async

}

Expand Down Expand Up @@ -9867,9 +9867,9 @@ open func state(listener: SyncServiceStateObserver) -> TaskHandle {
})
}

open func stop()async throws {
open func stop()async {
return
try await uniffiRustCallAsync(
try! await uniffiRustCallAsync(
rustFutureFunc: {
uniffi_matrix_sdk_ffi_fn_method_syncservice_stop(
self.uniffiClonePointer()
Expand All @@ -9880,7 +9880,8 @@ open func stop()async throws {
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
liftFunc: { $0 },
errorHandler: FfiConverterTypeClientError.lift
errorHandler: nil

)
}

Expand Down Expand Up @@ -9938,6 +9939,11 @@ public protocol SyncServiceBuilderProtocol : AnyObject {

func withCrossProcessLock() -> SyncServiceBuilder

/**
* Enable the "offline" mode for the [`SyncService`].
*/
func withOfflineMode() -> SyncServiceBuilder

func withUtdHook(delegate: UnableToDecryptDelegate) async -> SyncServiceBuilder

}
Expand Down Expand Up @@ -10005,6 +10011,16 @@ open func withCrossProcessLock() -> SyncServiceBuilder {
uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_cross_process_lock(self.uniffiClonePointer(),$0
)
})
}

/**
* Enable the "offline" mode for the [`SyncService`].
*/
open func withOfflineMode() -> SyncServiceBuilder {
return try! FfiConverterTypeSyncServiceBuilder.lift(try! rustCall() {
uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_offline_mode(self.uniffiClonePointer(),$0
)
})
}

open func withUtdHook(delegate: UnableToDecryptDelegate)async -> SyncServiceBuilder {
Expand Down Expand Up @@ -25348,6 +25364,7 @@ public enum SyncServiceState {
case running
case terminated
case error
case offline
}


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

case 4: return .error

case 5: return .offline

default: throw UniffiInternalError.unexpectedEnumCase
}
}
Expand All @@ -25389,6 +25408,10 @@ public struct FfiConverterTypeSyncServiceState: FfiConverterRustBuffer {
case .error:
writeInt(&buf, Int32(4))


case .offline:
writeInt(&buf, Int32(5))

}
}
}
Expand Down Expand Up @@ -32007,7 +32030,7 @@ private var initializationResult: InitializationResult = {
if (uniffi_matrix_sdk_ffi_checksum_method_syncservice_state() != 61806) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop() != 23138) {
if (uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop() != 42435) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish() != 22814) {
Expand All @@ -32016,6 +32039,9 @@ private var initializationResult: InitializationResult = {
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_cross_process_lock() != 56326) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_offline_mode() != 16958) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_utd_hook() != 9029) {
return InitializationResult.apiChecksumMismatch
}
Expand Down

0 comments on commit 13f08ba

Please sign in to comment.