Skip to content

Commit 22637fa

Browse files
committed
Bump to v0.0.3-november23 (matrix-rust-sdk/poljar/recovery eb458f354613ff5089b6f00a57bed7aac16077a0)
1 parent f647c08 commit 22637fa

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
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 = "06bab33becab69141ee3a6ec07ff25eb579502f47d7804cd3bb6d79a075a7a4d"
7-
let version = "v0.0.2-november23"
6+
let checksum = "410fd6d19024e582f46cdef547e163e8a271e6909eedcbd62b93b76fed72dd47"
7+
let version = "v0.0.3-november23"
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: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,6 +2472,7 @@ public func FfiConverterTypeNotificationClientBuilder_lower(_ value: Notificatio
24722472

24732473

24742474
public protocol NotificationSettingsProtocol : AnyObject {
2475+
func canHomeserverPushEncryptedEventToDevice() async -> Bool
24752476
func containsKeywordsRules() async -> Bool
24762477
func getDefaultRoomNotificationMode(isEncrypted: Bool, isOneToOne: Bool) async -> RoomNotificationMode
24772478
func getRoomNotificationSettings(roomId: String, isEncrypted: Bool, isOneToOne: Bool) async throws -> RoomNotificationSettings
@@ -2510,6 +2511,24 @@ public class NotificationSettings: NotificationSettingsProtocol {
25102511

25112512

25122513

2514+
public func canHomeserverPushEncryptedEventToDevice() async -> Bool {
2515+
return try! await uniffiRustCallAsync(
2516+
rustFutureFunc: {
2517+
uniffi_matrix_sdk_ffi_fn_method_notificationsettings_can_homeserver_push_encrypted_event_to_device(
2518+
self.pointer
2519+
)
2520+
},
2521+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_i8,
2522+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_i8,
2523+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_i8,
2524+
liftFunc: FfiConverterBool.lift,
2525+
errorHandler: nil
2526+
2527+
)
2528+
}
2529+
2530+
2531+
25132532
public func containsKeywordsRules() async -> Bool {
25142533
return try! await uniffiRustCallAsync(
25152534
rustFutureFunc: {
@@ -17706,6 +17725,14 @@ public func generateWebviewUrl(widgetSettings: WidgetSettings, room: Room, props
1770617725

1770717726

1770817727

17728+
public func getElementCallRequiredPermissions() -> WidgetCapabilities {
17729+
return try! FfiConverterTypeWidgetCapabilities.lift(
17730+
try! rustCall() {
17731+
uniffi_matrix_sdk_ffi_fn_func_get_element_call_required_permissions($0)
17732+
}
17733+
)
17734+
}
17735+
1770917736
public func logEvent(file: String, line: UInt32?, level: LogLevel, target: String, message: String) {
1771017737
try! rustCall() {
1771117738
uniffi_matrix_sdk_ffi_fn_func_log_event(
@@ -17840,6 +17867,9 @@ private var initializationResult: InitializationResult {
1784017867
if (uniffi_matrix_sdk_ffi_checksum_func_generate_webview_url() != 16581) {
1784117868
return InitializationResult.apiChecksumMismatch
1784217869
}
17870+
if (uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions() != 51289) {
17871+
return InitializationResult.apiChecksumMismatch
17872+
}
1784317873
if (uniffi_matrix_sdk_ffi_checksum_func_log_event() != 58164) {
1784417874
return InitializationResult.apiChecksumMismatch
1784517875
}
@@ -18170,6 +18200,9 @@ private var initializationResult: InitializationResult {
1817018200
if (uniffi_matrix_sdk_ffi_checksum_method_notificationclientbuilder_finish() != 12382) {
1817118201
return InitializationResult.apiChecksumMismatch
1817218202
}
18203+
if (uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_can_homeserver_push_encrypted_event_to_device() != 22382) {
18204+
return InitializationResult.apiChecksumMismatch
18205+
}
1817318206
if (uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_contains_keywords_rules() != 42972) {
1817418207
return InitializationResult.apiChecksumMismatch
1817518208
}

0 commit comments

Comments
 (0)