Skip to content

Commit 1c896dc

Browse files
committed
Bump to version 25.07.15 (matrix-rust-sdk/main c5f2460e02122eb4e3333e4acb97ae099d63e00f)
1 parent 08ec4ea commit 1c896dc

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
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 = "1b7d30972a5e5714f6ec14142c790b9b3384bcd1d68df4ef1313a507f4fa7914"
5-
let version = "25.07.14-2"
4+
let checksum = "772dfd5748fac3b023c8e1e0c84fc3acfca379393abf76970fd8813c7209352d"
5+
let version = "25.07.15"
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: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,13 @@ public protocol ClientProtocol : AnyObject {
10691069
* However, it should be noted that when providing a user ID as a hint
10701070
* for MAS (with no upstream provider), then the format to use is defined
10711071
* by [MSC4198]: https://github.com/matrix-org/matrix-spec-proposals/pull/4198
1072+
*
1073+
* * `device_id` - The unique ID that will be associated with the session.
1074+
* If not set, a random one will be generated. It can be an existing
1075+
* device ID from a previous login call. Note that this should be done
1076+
* only if the client also holds the corresponding encryption keys.
10721077
*/
1073-
func urlForOidc(oidcConfiguration: OidcConfiguration, prompt: OidcPrompt?, loginHint: String?) async throws -> OAuthAuthorizationData
1078+
func urlForOidc(oidcConfiguration: OidcConfiguration, prompt: OidcPrompt?, loginHint: String?, deviceId: String?) async throws -> OAuthAuthorizationData
10741079

10751080
func userId() throws -> String
10761081

@@ -2674,14 +2679,19 @@ open func uploadMedia(mimeType: String, data: Data, progressWatcher: ProgressWat
26742679
* However, it should be noted that when providing a user ID as a hint
26752680
* for MAS (with no upstream provider), then the format to use is defined
26762681
* by [MSC4198]: https://github.com/matrix-org/matrix-spec-proposals/pull/4198
2682+
*
2683+
* * `device_id` - The unique ID that will be associated with the session.
2684+
* If not set, a random one will be generated. It can be an existing
2685+
* device ID from a previous login call. Note that this should be done
2686+
* only if the client also holds the corresponding encryption keys.
26772687
*/
2678-
open func urlForOidc(oidcConfiguration: OidcConfiguration, prompt: OidcPrompt?, loginHint: String?)async throws -> OAuthAuthorizationData {
2688+
open func urlForOidc(oidcConfiguration: OidcConfiguration, prompt: OidcPrompt?, loginHint: String?, deviceId: String?)async throws -> OAuthAuthorizationData {
26792689
return
26802690
try await uniffiRustCallAsync(
26812691
rustFutureFunc: {
26822692
uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc(
26832693
self.uniffiClonePointer(),
2684-
FfiConverterTypeOidcConfiguration.lower(oidcConfiguration),FfiConverterOptionTypeOidcPrompt.lower(prompt),FfiConverterOptionString.lower(loginHint)
2694+
FfiConverterTypeOidcConfiguration.lower(oidcConfiguration),FfiConverterOptionTypeOidcPrompt.lower(prompt),FfiConverterOptionString.lower(loginHint),FfiConverterOptionString.lower(deviceId)
26852695
)
26862696
},
26872697
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_pointer,
@@ -37207,7 +37217,7 @@ private var initializationResult: InitializationResult = {
3720737217
if (uniffi_matrix_sdk_ffi_checksum_method_client_upload_media() != 51195) {
3720837218
return InitializationResult.apiChecksumMismatch
3720937219
}
37210-
if (uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc() != 28386) {
37220+
if (uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc() != 34524) {
3721137221
return InitializationResult.apiChecksumMismatch
3721237222
}
3721337223
if (uniffi_matrix_sdk_ffi_checksum_method_client_user_id() != 40531) {

0 commit comments

Comments
 (0)