Skip to content

Commit dc2d7ac

Browse files
committed
Bump to version v1.0.24 (matrix-rust-sdk/main 6ee2919)
1 parent 6832983 commit dc2d7ac

File tree

2 files changed

+38
-15
lines changed

2 files changed

+38
-15
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 = "79ccc220fc4edc61822092cd2354c207db5dfbdf02ce485c8032f33a3370f179"
5-
let version = "v1.0.23"
4+
let checksum = "90e07eb6b2732bde32c1b028d0857e2d277c3ced9c0ebb02f9379c3500186510"
5+
let version = "v1.0.24"
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: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,15 @@ public protocol ClientProtocol : AnyObject {
717717

718718
func removeAvatar() async throws
719719

720+
/**
721+
* Empty the server version and unstable features cache.
722+
*
723+
* Since the SDK caches server capabilities (versions and unstable
724+
* features), it's possible to have a stale entry in the cache. This
725+
* functions makes it possible to force reset it.
726+
*/
727+
func resetServerCapabilities() async throws
728+
720729
/**
721730
* Resolves the given room alias to a room ID (and a list of servers), if
722731
* possible.
@@ -1416,6 +1425,30 @@ open func removeAvatar()async throws {
14161425
)
14171426
}
14181427

1428+
/**
1429+
* Empty the server version and unstable features cache.
1430+
*
1431+
* Since the SDK caches server capabilities (versions and unstable
1432+
* features), it's possible to have a stale entry in the cache. This
1433+
* functions makes it possible to force reset it.
1434+
*/
1435+
open func resetServerCapabilities()async throws {
1436+
return
1437+
try await uniffiRustCallAsync(
1438+
rustFutureFunc: {
1439+
uniffi_matrix_sdk_ffi_fn_method_client_reset_server_capabilities(
1440+
self.uniffiClonePointer()
1441+
1442+
)
1443+
},
1444+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void,
1445+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
1446+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
1447+
liftFunc: { $0 },
1448+
errorHandler: FfiConverterTypeClientError.lift
1449+
)
1450+
}
1451+
14191452
/**
14201453
* Resolves the given room alias to a room ID (and a list of servers), if
14211454
* possible.
@@ -1823,8 +1856,6 @@ public protocol ClientBuilderProtocol : AnyObject {
18231856

18241857
func serverNameOrHomeserverUrl(serverNameOrUrl: String) -> ClientBuilder
18251858

1826-
func serverVersions(versions: [String]) -> ClientBuilder
1827-
18281859
/**
18291860
* Sets the path that the client will use to store its data once logged in.
18301861
* This path **must** be unique per session as the data stores aren't
@@ -2049,14 +2080,6 @@ open func serverNameOrHomeserverUrl(serverNameOrUrl: String) -> ClientBuilder {
20492080
FfiConverterString.lower(serverNameOrUrl),$0
20502081
)
20512082
})
2052-
}
2053-
2054-
open func serverVersions(versions: [String]) -> ClientBuilder {
2055-
return try! FfiConverterTypeClientBuilder.lift(try! rustCall() {
2056-
uniffi_matrix_sdk_ffi_fn_method_clientbuilder_server_versions(self.uniffiClonePointer(),
2057-
FfiConverterSequenceString.lower(versions),$0
2058-
)
2059-
})
20602083
}
20612084

20622085
/**
@@ -25576,6 +25599,9 @@ private var initializationResult: InitializationResult {
2557625599
if (uniffi_matrix_sdk_ffi_checksum_method_client_remove_avatar() != 29033) {
2557725600
return InitializationResult.apiChecksumMismatch
2557825601
}
25602+
if (uniffi_matrix_sdk_ffi_checksum_method_client_reset_server_capabilities() != 39651) {
25603+
return InitializationResult.apiChecksumMismatch
25604+
}
2557925605
if (uniffi_matrix_sdk_ffi_checksum_method_client_resolve_room_alias() != 14306) {
2558025606
return InitializationResult.apiChecksumMismatch
2558125607
}
@@ -25684,9 +25710,6 @@ private var initializationResult: InitializationResult {
2568425710
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_server_name_or_homeserver_url() != 30022) {
2568525711
return InitializationResult.apiChecksumMismatch
2568625712
}
25687-
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_server_versions() != 15644) {
25688-
return InitializationResult.apiChecksumMismatch
25689-
}
2569025713
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_session_path() != 49266) {
2569125714
return InitializationResult.apiChecksumMismatch
2569225715
}

0 commit comments

Comments
 (0)