Skip to content

Commit 91d7262

Browse files
committed
Bump to version 25.07.10 (matrix-rust-sdk/main fcdb63dcbe488d217594dc596e01a1164ed0c1fb)
1 parent 9ca4d9e commit 91d7262

File tree

2 files changed

+42
-18
lines changed

2 files changed

+42
-18
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 = "e4fbf0286dc3622de67ebd78f64b5d8be67bd61c153ba6327a04109b9495c564"
5-
let version = "25.07.04"
4+
let checksum = "b96663a766a78b9f4edc45773be5057af0b5accf5b29a54df68e1ae3dc6a7df1"
5+
let version = "25.07.10"
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: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4918,8 +4918,9 @@ public protocol NotificationClientProtocol : AnyObject {
49184918
*
49194919
* Returns an error if the flow failed when preparing to fetch the
49204920
* notifications, and a [`HashMap`] containing either a
4921-
* [`NotificationItem`] or no entry for it if it failed to fetch a
4922-
* notification for the provided [`EventId`].
4921+
* [`BatchNotificationResult`], that indicates if the notification was
4922+
* successfully fetched (in which case, it's a [`NotificationStatus`]), or
4923+
* an error message if it couldn't be fetched.
49234924
*/
49244925
func getNotifications(requests: [NotificationItemsRequest]) async throws -> [String: BatchNotificationResult]
49254926

@@ -5006,8 +5007,9 @@ open func getNotification(roomId: String, eventId: String)async throws -> Notif
50065007
*
50075008
* Returns an error if the flow failed when preparing to fetch the
50085009
* notifications, and a [`HashMap`] containing either a
5009-
* [`NotificationItem`] or no entry for it if it failed to fetch a
5010-
* notification for the provided [`EventId`].
5010+
* [`BatchNotificationResult`], that indicates if the notification was
5011+
* successfully fetched (in which case, it's a [`NotificationStatus`]), or
5012+
* an error message if it couldn't be fetched.
50115013
*/
50125014
open func getNotifications(requests: [NotificationItemsRequest])async throws -> [String: BatchNotificationResult] {
50135015
return
@@ -8808,7 +8810,7 @@ public protocol RoomListServiceProtocol : AnyObject {
88088810

88098811
func state(listener: RoomListServiceStateListener) -> TaskHandle
88108812

8811-
func subscribeToRooms(roomIds: [String]) throws
8813+
func subscribeToRooms(roomIds: [String]) async throws
88128814

88138815
func syncIndicator(delayBeforeShowingInMs: UInt32, delayBeforeHidingInMs: UInt32, listener: RoomListServiceSyncIndicatorListener) -> TaskHandle
88148816

@@ -8888,11 +8890,21 @@ open func state(listener: RoomListServiceStateListener) -> TaskHandle {
88888890
})
88898891
}
88908892

8891-
open func subscribeToRooms(roomIds: [String])throws {try rustCallWithError(FfiConverterTypeRoomListError.lift) {
8892-
uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(self.uniffiClonePointer(),
8893-
FfiConverterSequenceString.lower(roomIds),$0
8894-
)
8895-
}
8893+
open func subscribeToRooms(roomIds: [String])async throws {
8894+
return
8895+
try await uniffiRustCallAsync(
8896+
rustFutureFunc: {
8897+
uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(
8898+
self.uniffiClonePointer(),
8899+
FfiConverterSequenceString.lower(roomIds)
8900+
)
8901+
},
8902+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void,
8903+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
8904+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
8905+
liftFunc: { $0 },
8906+
errorHandler: FfiConverterTypeRoomListError.lift
8907+
)
88968908
}
88978909

88988910
open func syncIndicator(delayBeforeShowingInMs: UInt32, delayBeforeHidingInMs: UInt32, listener: RoomListServiceSyncIndicatorListener) -> TaskHandle {
@@ -11221,6 +11233,8 @@ public protocol SyncServiceBuilderProtocol : AnyObject {
1122111233
*/
1122211234
func withOfflineMode() -> SyncServiceBuilder
1122311235

11236+
func withSharePos(enable: Bool) -> SyncServiceBuilder
11237+
1122411238
}
1122511239

1122611240
open class SyncServiceBuilder:
@@ -11298,6 +11312,14 @@ open func withOfflineMode() -> SyncServiceBuilder {
1129811312
})
1129911313
}
1130011314

11315+
open func withSharePos(enable: Bool) -> SyncServiceBuilder {
11316+
return try! FfiConverterTypeSyncServiceBuilder.lift(try! rustCall() {
11317+
uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_share_pos(self.uniffiClonePointer(),
11318+
FfiConverterBool.lower(enable),$0
11319+
)
11320+
})
11321+
}
11322+
1130111323

1130211324
}
1130311325

@@ -30480,7 +30502,7 @@ public enum TimelineFocus {
3048030502
case thread(
3048130503
/**
3048230504
* The thread root event ID to focus on.
30483-
*/rootEventId: String, numEvents: UInt16
30505+
*/rootEventId: String
3048430506
)
3048530507
case pinnedEvents(maxEventsToLoad: UInt16, maxConcurrentRequests: UInt16
3048630508
)
@@ -30500,7 +30522,7 @@ public struct FfiConverterTypeTimelineFocus: FfiConverterRustBuffer {
3050030522
case 2: return .event(eventId: try FfiConverterString.read(from: &buf), numContextEvents: try FfiConverterUInt16.read(from: &buf), hideThreadedEvents: try FfiConverterBool.read(from: &buf)
3050130523
)
3050230524

30503-
case 3: return .thread(rootEventId: try FfiConverterString.read(from: &buf), numEvents: try FfiConverterUInt16.read(from: &buf)
30525+
case 3: return .thread(rootEventId: try FfiConverterString.read(from: &buf)
3050430526
)
3050530527

3050630528
case 4: return .pinnedEvents(maxEventsToLoad: try FfiConverterUInt16.read(from: &buf), maxConcurrentRequests: try FfiConverterUInt16.read(from: &buf)
@@ -30526,10 +30548,9 @@ public struct FfiConverterTypeTimelineFocus: FfiConverterRustBuffer {
3052630548
FfiConverterBool.write(hideThreadedEvents, into: &buf)
3052730549

3052830550

30529-
case let .thread(rootEventId,numEvents):
30551+
case let .thread(rootEventId):
3053030552
writeInt(&buf, Int32(3))
3053130553
FfiConverterString.write(rootEventId, into: &buf)
30532-
FfiConverterUInt16.write(numEvents, into: &buf)
3053330554

3053430555

3053530556
case let .pinnedEvents(maxEventsToLoad,maxConcurrentRequests):
@@ -37397,7 +37418,7 @@ private var initializationResult: InitializationResult = {
3739737418
if (uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification() != 52873) {
3739837419
return InitializationResult.apiChecksumMismatch
3739937420
}
37400-
if (uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notifications() != 32112) {
37421+
if (uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notifications() != 64372) {
3740137422
return InitializationResult.apiChecksumMismatch
3740237423
}
3740337424
if (uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_room() != 26581) {
@@ -37793,7 +37814,7 @@ private var initializationResult: InitializationResult = {
3779337814
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_state() != 64650) {
3779437815
return InitializationResult.apiChecksumMismatch
3779537816
}
37796-
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() != 59765) {
37817+
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() != 5528) {
3779737818
return InitializationResult.apiChecksumMismatch
3779837819
}
3779937820
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator() != 16821) {
@@ -37967,6 +37988,9 @@ private var initializationResult: InitializationResult = {
3796737988
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_offline_mode() != 16958) {
3796837989
return InitializationResult.apiChecksumMismatch
3796937990
}
37991+
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_share_pos() != 18892) {
37992+
return InitializationResult.apiChecksumMismatch
37993+
}
3797037994
if (uniffi_matrix_sdk_ffi_checksum_method_taskhandle_cancel() != 9124) {
3797137995
return InitializationResult.apiChecksumMismatch
3797237996
}

0 commit comments

Comments
 (0)