Skip to content

Commit 70c8471

Browse files
committed
Bump to version v1.0.36 (matrix-rust-sdk/main be404f6)
1 parent 410fa67 commit 70c8471

File tree

2 files changed

+38
-14
lines changed

2 files changed

+38
-14
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 = "792a0a43b54f6696222e6addff64c5538ad6a19a4f847dda5db23995db11a302"
5-
let version = "v1.0.35"
4+
let checksum = "5cba49f9de15cc43c554f265e436d17a1df650c134f0f4b2884b3e08a3503c32"
5+
let version = "v1.0.36"
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: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3095,6 +3095,8 @@ public protocol IdentityResetHandleProtocol : AnyObject {
30953095
*/
30963096
func authType() -> CrossSigningResetAuthType
30973097

3098+
func cancel() async
3099+
30983100
/**
30993101
* This method starts the identity reset process and
31003102
* will go through the following steps:
@@ -3160,6 +3162,24 @@ open func authType() -> CrossSigningResetAuthType {
31603162
})
31613163
}
31623164

3165+
open func cancel()async {
3166+
return
3167+
try! await uniffiRustCallAsync(
3168+
rustFutureFunc: {
3169+
uniffi_matrix_sdk_ffi_fn_method_identityresethandle_cancel(
3170+
self.uniffiClonePointer()
3171+
3172+
)
3173+
},
3174+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void,
3175+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
3176+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
3177+
liftFunc: { $0 },
3178+
errorHandler: nil
3179+
3180+
)
3181+
}
3182+
31633183
/**
31643184
* This method starts the identity reset process and
31653185
* will go through the following steps:
@@ -6749,8 +6769,6 @@ public protocol RoomListItemProtocol : AnyObject {
67496769

67506770
func roomInfo() async throws -> RoomInfo
67516771

6752-
func subscribe(settings: RoomSubscription?)
6753-
67546772
}
67556773

67566774
open class RoomListItem:
@@ -6942,13 +6960,6 @@ open func roomInfo()async throws -> RoomInfo {
69426960
)
69436961
}
69446962

6945-
open func subscribe(settings: RoomSubscription?) {try! rustCall() {
6946-
uniffi_matrix_sdk_ffi_fn_method_roomlistitem_subscribe(self.uniffiClonePointer(),
6947-
FfiConverterOptionTypeRoomSubscription.lower(settings),$0
6948-
)
6949-
}
6950-
}
6951-
69526963

69536964
}
69546965

@@ -7005,6 +7016,8 @@ public protocol RoomListServiceProtocol : AnyObject {
70057016

70067017
func state(listener: RoomListServiceStateListener) -> TaskHandle
70077018

7019+
func subscribeToRooms(roomIds: [String], settings: RoomSubscription?) throws
7020+
70087021
func syncIndicator(delayBeforeShowingInMs: UInt32, delayBeforeHidingInMs: UInt32, listener: RoomListServiceSyncIndicatorListener) -> TaskHandle
70097022

70107023
}
@@ -7083,6 +7096,14 @@ open func state(listener: RoomListServiceStateListener) -> TaskHandle {
70837096
})
70847097
}
70857098

7099+
open func subscribeToRooms(roomIds: [String], settings: RoomSubscription?)throws {try rustCallWithError(FfiConverterTypeRoomListError.lift) {
7100+
uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(self.uniffiClonePointer(),
7101+
FfiConverterSequenceString.lower(roomIds),
7102+
FfiConverterOptionTypeRoomSubscription.lower(settings),$0
7103+
)
7104+
}
7105+
}
7106+
70867107
open func syncIndicator(delayBeforeShowingInMs: UInt32, delayBeforeHidingInMs: UInt32, listener: RoomListServiceSyncIndicatorListener) -> TaskHandle {
70877108
return try! FfiConverterTypeTaskHandle.lift(try! rustCall() {
70887109
uniffi_matrix_sdk_ffi_fn_method_roomlistservice_sync_indicator(self.uniffiClonePointer(),
@@ -26813,6 +26834,9 @@ private var initializationResult: InitializationResult = {
2681326834
if (uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_auth_type() != 43501) {
2681426835
return InitializationResult.apiChecksumMismatch
2681526836
}
26837+
if (uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_cancel() != 57622) {
26838+
return InitializationResult.apiChecksumMismatch
26839+
}
2681626840
if (uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_reset() != 11997) {
2681726841
return InitializationResult.apiChecksumMismatch
2681826842
}
@@ -27206,9 +27230,6 @@ private var initializationResult: InitializationResult = {
2720627230
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info() != 32985) {
2720727231
return InitializationResult.apiChecksumMismatch
2720827232
}
27209-
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_subscribe() != 60003) {
27210-
return InitializationResult.apiChecksumMismatch
27211-
}
2721227233
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_all_rooms() != 49704) {
2721327234
return InitializationResult.apiChecksumMismatch
2721427235
}
@@ -27218,6 +27239,9 @@ private var initializationResult: InitializationResult = {
2721827239
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_state() != 64650) {
2721927240
return InitializationResult.apiChecksumMismatch
2722027241
}
27242+
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() != 21360) {
27243+
return InitializationResult.apiChecksumMismatch
27244+
}
2722127245
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator() != 16821) {
2722227246
return InitializationResult.apiChecksumMismatch
2722327247
}

0 commit comments

Comments
 (0)