Skip to content

Commit 2ff6c2a

Browse files
committed
Bump to v1.1.52 (matrix-rust-sdk/main 97959bbcd0106b7bb20d6b025c20e60a79f5d1de)
1 parent 6f8e453 commit 2ff6c2a

File tree

2 files changed

+75
-16
lines changed

2 files changed

+75
-16
lines changed

Package.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let checksum = "2981174dd2b76c8a4963036c8803a47cc85f78aff4acf5dc82bd6ea3dfdbebc2"
7-
let version = "v1.1.51"
6+
let checksum = "65874b401714b5ed9aedfe74700b2a8fbbd50d635c780f6e4092201aa2b55381"
7+
let version = "v1.1.52"
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

+73-14
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,11 @@ public protocol ClientProtocol : AnyObject {
783783

784784
func createRoom(request: CreateRoomParameters) throws -> String
785785

786+
/**
787+
* Deletes a pusher of given pusher ids
788+
*/
789+
func deletePusher(identifiers: PusherIdentifiers) async throws
790+
786791
func deviceId() throws -> String
787792

788793
func displayName() throws -> String
@@ -812,6 +817,8 @@ public protocol ClientProtocol : AnyObject {
812817

813818
func ignoredUsers() async throws -> [String]
814819

820+
func joinRoomById(roomId: String) async throws -> Room
821+
815822
/**
816823
* Login using a username and password.
817824
*/
@@ -855,7 +862,7 @@ public protocol ClientProtocol : AnyObject {
855862
/**
856863
* Registers a pusher with given parameters
857864
*/
858-
func setPusher(identifiers: PusherIdentifiers, kind: PusherKind, appDisplayName: String, deviceDisplayName: String, profileTag: String?, lang: String) throws
865+
func setPusher(identifiers: PusherIdentifiers, kind: PusherKind, appDisplayName: String, deviceDisplayName: String, profileTag: String?, lang: String) async throws
859866

860867
func subscribeToIgnoredUsers(listener: IgnoredUsersListener) -> TaskHandle
861868

@@ -966,6 +973,26 @@ open class Client:
966973
}
967974
)
968975
}
976+
/**
977+
* Deletes a pusher of given pusher ids
978+
*/
979+
open func deletePusher(identifiers: PusherIdentifiers) async throws {
980+
return try await uniffiRustCallAsync(
981+
rustFutureFunc: {
982+
uniffi_matrix_sdk_ffi_fn_method_client_delete_pusher(
983+
self.uniffiClonePointer(),
984+
FfiConverterTypePusherIdentifiers.lower(identifiers)
985+
)
986+
},
987+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void,
988+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
989+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
990+
liftFunc: { $0 },
991+
errorHandler: FfiConverterTypeClientError.lift
992+
)
993+
}
994+
995+
969996
open func deviceId() throws -> String {
970997
return try FfiConverterString.lift(
971998
try
@@ -1136,6 +1163,23 @@ open class Client:
11361163
}
11371164

11381165

1166+
open func joinRoomById(roomId: String) async throws -> Room {
1167+
return try await uniffiRustCallAsync(
1168+
rustFutureFunc: {
1169+
uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id(
1170+
self.uniffiClonePointer(),
1171+
FfiConverterString.lower(roomId)
1172+
)
1173+
},
1174+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_pointer,
1175+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_pointer,
1176+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_pointer,
1177+
liftFunc: FfiConverterTypeRoom.lift,
1178+
errorHandler: FfiConverterTypeClientError.lift
1179+
)
1180+
}
1181+
1182+
11391183
/**
11401184
* Login using a username and password.
11411185
*/
@@ -1268,19 +1312,28 @@ open class Client:
12681312
/**
12691313
* Registers a pusher with given parameters
12701314
*/
1271-
open func setPusher(identifiers: PusherIdentifiers, kind: PusherKind, appDisplayName: String, deviceDisplayName: String, profileTag: String?, lang: String) throws {
1272-
try
1273-
rustCallWithError(FfiConverterTypeClientError.lift) {
1274-
uniffi_matrix_sdk_ffi_fn_method_client_set_pusher(self.uniffiClonePointer(),
1275-
FfiConverterTypePusherIdentifiers.lower(identifiers),
1276-
FfiConverterTypePusherKind.lower(kind),
1277-
FfiConverterString.lower(appDisplayName),
1278-
FfiConverterString.lower(deviceDisplayName),
1279-
FfiConverterOptionString.lower(profileTag),
1280-
FfiConverterString.lower(lang),$0
1281-
)
1282-
}
1315+
open func setPusher(identifiers: PusherIdentifiers, kind: PusherKind, appDisplayName: String, deviceDisplayName: String, profileTag: String?, lang: String) async throws {
1316+
return try await uniffiRustCallAsync(
1317+
rustFutureFunc: {
1318+
uniffi_matrix_sdk_ffi_fn_method_client_set_pusher(
1319+
self.uniffiClonePointer(),
1320+
FfiConverterTypePusherIdentifiers.lower(identifiers),
1321+
FfiConverterTypePusherKind.lower(kind),
1322+
FfiConverterString.lower(appDisplayName),
1323+
FfiConverterString.lower(deviceDisplayName),
1324+
FfiConverterOptionString.lower(profileTag),
1325+
FfiConverterString.lower(lang)
1326+
)
1327+
},
1328+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void,
1329+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
1330+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
1331+
liftFunc: { $0 },
1332+
errorHandler: FfiConverterTypeClientError.lift
1333+
)
12831334
}
1335+
1336+
12841337
open func subscribeToIgnoredUsers(listener: IgnoredUsersListener) -> TaskHandle {
12851338
return try! FfiConverterTypeTaskHandle.lift(
12861339
try!
@@ -23010,6 +23063,9 @@ private var initializationResult: InitializationResult {
2301023063
if (uniffi_matrix_sdk_ffi_checksum_method_client_create_room() != 25555) {
2301123064
return InitializationResult.apiChecksumMismatch
2301223065
}
23066+
if (uniffi_matrix_sdk_ffi_checksum_method_client_delete_pusher() != 46707) {
23067+
return InitializationResult.apiChecksumMismatch
23068+
}
2301323069
if (uniffi_matrix_sdk_ffi_checksum_method_client_device_id() != 44340) {
2301423070
return InitializationResult.apiChecksumMismatch
2301523071
}
@@ -23049,6 +23105,9 @@ private var initializationResult: InitializationResult {
2304923105
if (uniffi_matrix_sdk_ffi_checksum_method_client_ignored_users() != 49620) {
2305023106
return InitializationResult.apiChecksumMismatch
2305123107
}
23108+
if (uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id() != 61264) {
23109+
return InitializationResult.apiChecksumMismatch
23110+
}
2305223111
if (uniffi_matrix_sdk_ffi_checksum_method_client_login() != 55564) {
2305323112
return InitializationResult.apiChecksumMismatch
2305423113
}
@@ -23085,7 +23144,7 @@ private var initializationResult: InitializationResult {
2308523144
if (uniffi_matrix_sdk_ffi_checksum_method_client_set_display_name() != 27968) {
2308623145
return InitializationResult.apiChecksumMismatch
2308723146
}
23088-
if (uniffi_matrix_sdk_ffi_checksum_method_client_set_pusher() != 36816) {
23147+
if (uniffi_matrix_sdk_ffi_checksum_method_client_set_pusher() != 21191) {
2308923148
return InitializationResult.apiChecksumMismatch
2309023149
}
2309123150
if (uniffi_matrix_sdk_ffi_checksum_method_client_subscribe_to_ignored_users() != 46021) {

0 commit comments

Comments
 (0)