Skip to content

Commit 3d11622

Browse files
committed
Bump to v1.1.63 (matrix-rust-sdk/main 177e31cf9a7f3b0a69ae1d08fb60a6131c49bb32)
1 parent c060a2a commit 3d11622

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
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 = "efe5b3e3f0227c45ca243ba0e73fc3f99aa39b37ef593f7592269aa8980d400c"
7-
let version = "v1.1.62"
6+
let checksum = "20b5a3c2a05239c16aede340e66b7604a9707c5a3d0963f87d112f6aff4f6424"
7+
let version = "v1.1.63"
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: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ public protocol ClientProtocol : AnyObject {
805805
*/
806806
func accountData(eventType: String) throws -> String?
807807

808-
func accountUrl(action: AccountManagementAction?) throws -> String?
808+
func accountUrl(action: AccountManagementAction?) async throws -> String?
809809

810810
func avatarUrl() throws -> String?
811811

@@ -979,16 +979,23 @@ open class Client:
979979
}
980980
)
981981
}
982-
open func accountUrl(action: AccountManagementAction?) throws -> String? {
983-
return try FfiConverterOptionString.lift(
984-
try
985-
rustCallWithError(FfiConverterTypeClientError.lift) {
986-
uniffi_matrix_sdk_ffi_fn_method_client_account_url(self.uniffiClonePointer(),
987-
FfiConverterOptionTypeAccountManagementAction.lower(action),$0
988-
)
989-
}
982+
open func accountUrl(action: AccountManagementAction?) async throws -> String? {
983+
return try await uniffiRustCallAsync(
984+
rustFutureFunc: {
985+
uniffi_matrix_sdk_ffi_fn_method_client_account_url(
986+
self.uniffiClonePointer(),
987+
FfiConverterOptionTypeAccountManagementAction.lower(action)
988+
)
989+
},
990+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
991+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
992+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
993+
liftFunc: FfiConverterOptionString.lift,
994+
errorHandler: FfiConverterTypeClientError.lift
990995
)
991996
}
997+
998+
992999
open func avatarUrl() throws -> String? {
9931000
return try FfiConverterOptionString.lift(
9941001
try
@@ -14117,6 +14124,8 @@ public enum AccountManagementAction {
1411714124
)
1411814125
case sessionEnd(deviceId: String
1411914126
)
14127+
case accountDeactivate
14128+
case crossSigningReset
1412014129
}
1412114130

1412214131

@@ -14137,6 +14146,10 @@ public struct FfiConverterTypeAccountManagementAction: FfiConverterRustBuffer {
1413714146
case 4: return .sessionEnd(deviceId: try FfiConverterString.read(from: &buf)
1413814147
)
1413914148

14149+
case 5: return .accountDeactivate
14150+
14151+
case 6: return .crossSigningReset
14152+
1414014153
default: throw UniffiInternalError.unexpectedEnumCase
1414114154
}
1414214155
}
@@ -14162,6 +14175,14 @@ public struct FfiConverterTypeAccountManagementAction: FfiConverterRustBuffer {
1416214175
writeInt(&buf, Int32(4))
1416314176
FfiConverterString.write(deviceId, into: &buf)
1416414177

14178+
14179+
case .accountDeactivate:
14180+
writeInt(&buf, Int32(5))
14181+
14182+
14183+
case .crossSigningReset:
14184+
writeInt(&buf, Int32(6))
14185+
1416514186
}
1416614187
}
1416714188
}
@@ -23957,7 +23978,7 @@ private var initializationResult: InitializationResult {
2395723978
if (uniffi_matrix_sdk_ffi_checksum_method_client_account_data() != 42952) {
2395823979
return InitializationResult.apiChecksumMismatch
2395923980
}
23960-
if (uniffi_matrix_sdk_ffi_checksum_method_client_account_url() != 54235) {
23981+
if (uniffi_matrix_sdk_ffi_checksum_method_client_account_url() != 12497) {
2396123982
return InitializationResult.apiChecksumMismatch
2396223983
}
2396323984
if (uniffi_matrix_sdk_ffi_checksum_method_client_avatar_url() != 18456) {

0 commit comments

Comments
 (0)