Skip to content

Commit 4557f06

Browse files
committed
Bump to v1.0.103-alpha (matrix-rust-sdk 18e283fee98eaa413f87cb578b8e9e25bd7a83cf)
1 parent fdef408 commit 4557f06

File tree

2 files changed

+22
-51
lines changed

2 files changed

+22
-51
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let checksum = "33978a1d36be4d435727c9f3fc0dc129d8f025f5d3a7cdb8df54b00d64f56d24"
7-
let version = "v1.0.102-alpha"
6+
let checksum = "6dbe2cf6fe2825cd3b24414b8a2ec520387d9db55818e2963a271c03982b492f"
7+
let version = "v1.0.103-alpha"
88
let url = "https://github.com/matrix-org/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
99

1010
let package = Package(

Sources/MatrixRustSDK/matrix_sdk_ffi.swift

Lines changed: 20 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ public func FfiConverterTypeNotificationSettings_lower(_ value: NotificationSett
24272427

24282428
public protocol RoomProtocol {
24292429
func `activeMembersCount`() -> UInt64
2430-
func `addTimelineListener`(`listener`: TimelineListener) async -> RoomTimelineListenerResult
2430+
func `addTimelineListener`(`listener`: TimelineListener) -> RoomTimelineListenerResult
24312431
func `alternativeAliases`() -> [String]
24322432
func `avatarUrl`() -> String?
24332433
func `canUserBan`(`userId`: String) async throws -> Bool
@@ -2519,30 +2519,17 @@ public class Room: RoomProtocol {
25192519
)
25202520
}
25212521

2522-
public func `addTimelineListener`(`listener`: TimelineListener) async -> RoomTimelineListenerResult {
2523-
// Suspend the function and call the scaffolding function, passing it a callback handler from
2524-
// `AsyncTypes.swift`
2525-
//
2526-
// Make sure to hold on to a reference to the continuation in the top-level scope so that
2527-
// it's not freed before the callback is invoked.
2528-
var continuation: CheckedContinuation<RoomTimelineListenerResult, Error>? = nil
2529-
return try! await withCheckedThrowingContinuation {
2530-
continuation = $0
2531-
try! rustCall() {
2532-
uniffi_matrix_sdk_ffi_fn_method_room_add_timeline_listener(
2533-
self.pointer,
2534-
2535-
FfiConverterCallbackInterfaceTimelineListener.lower(`listener`),
2536-
FfiConverterForeignExecutor.lower(UniFfiForeignExecutor()),
2537-
uniffiFutureCallbackHandlerTypeRoomTimelineListenerResult,
2538-
&continuation,
2539-
$0
2540-
)
2541-
}
2542-
}
2543-
}
2544-
2522+
public func `addTimelineListener`(`listener`: TimelineListener) -> RoomTimelineListenerResult {
2523+
return try! FfiConverterTypeRoomTimelineListenerResult.lift(
2524+
try!
2525+
rustCall() {
25452526

2527+
uniffi_matrix_sdk_ffi_fn_method_room_add_timeline_listener(self.pointer,
2528+
FfiConverterCallbackInterfaceTimelineListener.lower(`listener`),$0
2529+
)
2530+
}
2531+
)
2532+
}
25462533

25472534
public func `alternativeAliases`() -> [String] {
25482535
return try! FfiConverterSequenceString.lift(
@@ -4119,7 +4106,7 @@ public func FfiConverterTypeRoomMessageEventContent_lower(_ value: RoomMessageEv
41194106

41204107
public protocol SendAttachmentJoinHandleProtocol {
41214108
func `cancel`()
4122-
func `join`() async throws
4109+
func `join`() throws
41234110

41244111
}
41254112

@@ -4151,29 +4138,13 @@ public class SendAttachmentJoinHandle: SendAttachmentJoinHandleProtocol {
41514138
}
41524139
}
41534140

4154-
public func `join`() async throws {
4155-
// Suspend the function and call the scaffolding function, passing it a callback handler from
4156-
// `AsyncTypes.swift`
4157-
//
4158-
// Make sure to hold on to a reference to the continuation in the top-level scope so that
4159-
// it's not freed before the callback is invoked.
4160-
var continuation: CheckedContinuation<(), Error>? = nil
4161-
return try await withCheckedThrowingContinuation {
4162-
continuation = $0
4163-
try! rustCall() {
4164-
uniffi_matrix_sdk_ffi_fn_method_sendattachmentjoinhandle_join(
4165-
self.pointer,
4166-
4167-
FfiConverterForeignExecutor.lower(UniFfiForeignExecutor()),
4168-
uniffiFutureCallbackHandlerVoidTypeRoomError,
4169-
&continuation,
4170-
$0
4171-
)
4172-
}
4173-
}
4141+
public func `join`() throws {
4142+
try
4143+
rustCallWithError(FfiConverterTypeRoomError.lift) {
4144+
uniffi_matrix_sdk_ffi_fn_method_sendattachmentjoinhandle_join(self.pointer, $0
4145+
)
4146+
}
41744147
}
4175-
4176-
41774148
}
41784149

41794150
public struct FfiConverterTypeSendAttachmentJoinHandle: FfiConverter {
@@ -15578,7 +15549,7 @@ private var initializationResult: InitializationResult {
1557815549
if (uniffi_matrix_sdk_ffi_checksum_method_room_active_members_count() != 62367) {
1557915550
return InitializationResult.apiChecksumMismatch
1558015551
}
15581-
if (uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener() != 43137) {
15552+
if (uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener() != 2158) {
1558215553
return InitializationResult.apiChecksumMismatch
1558315554
}
1558415555
if (uniffi_matrix_sdk_ffi_checksum_method_room_alternative_aliases() != 25219) {
@@ -15869,7 +15840,7 @@ private var initializationResult: InitializationResult {
1586915840
if (uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel() != 58929) {
1587015841
return InitializationResult.apiChecksumMismatch
1587115842
}
15872-
if (uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join() != 25237) {
15843+
if (uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join() != 31788) {
1587315844
return InitializationResult.apiChecksumMismatch
1587415845
}
1587515846
if (uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification() != 468) {

0 commit comments

Comments
 (0)