Skip to content

Commit 29a19a0

Browse files
committed
Bump to version v1.0.26 (matrix-rust-sdk/main 4bbb6bd)
1 parent dd9e0d8 commit 29a19a0

File tree

2 files changed

+37
-13
lines changed

2 files changed

+37
-13
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 = "5d9c4fcb20e6a9fe1733029d8444fa5913b39b69fc3873419b519a2fb7e401f7"
5-
let version = "v1.0.25"
4+
let checksum = "934eaef93dfb7c3cda69fe5124cd4e89b482785f2e8d196e4b9f0c2fc175a811"
5+
let version = "v1.0.26"
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: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,13 @@ public protocol ClientBuilderProtocol : AnyObject {
18411841

18421842
func disableAutomaticTokenRefresh() -> ClientBuilder
18431843

1844+
/**
1845+
* Don't trust any system root certificates, only trust the certificates
1846+
* provided through
1847+
* [`add_root_certificates`][ClientBuilder::add_root_certificates].
1848+
*/
1849+
func disableBuiltInRootCertificates() -> ClientBuilder
1850+
18441851
func disableSslVerification() -> ClientBuilder
18451852

18461853
func enableCrossProcessRefreshLock(processId: String, sessionDelegate: ClientSessionDelegate) -> ClientBuilder
@@ -1868,6 +1875,8 @@ public protocol ClientBuilderProtocol : AnyObject {
18681875

18691876
func setSessionDelegate(sessionDelegate: ClientSessionDelegate) -> ClientBuilder
18701877

1878+
func simplifiedSlidingSync(enable: Bool) -> ClientBuilder
1879+
18711880
func slidingSyncProxy(slidingSyncProxy: String?) -> ClientBuilder
18721881

18731882
func userAgent(userAgent: String) -> ClientBuilder
@@ -2018,6 +2027,18 @@ open func disableAutomaticTokenRefresh() -> ClientBuilder {
20182027
uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_automatic_token_refresh(self.uniffiClonePointer(),$0
20192028
)
20202029
})
2030+
}
2031+
2032+
/**
2033+
* Don't trust any system root certificates, only trust the certificates
2034+
* provided through
2035+
* [`add_root_certificates`][ClientBuilder::add_root_certificates].
2036+
*/
2037+
open func disableBuiltInRootCertificates() -> ClientBuilder {
2038+
return try! FfiConverterTypeClientBuilder.lift(try! rustCall() {
2039+
uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_built_in_root_certificates(self.uniffiClonePointer(),$0
2040+
)
2041+
})
20212042
}
20222043

20232044
open func disableSslVerification() -> ClientBuilder {
@@ -2106,6 +2127,14 @@ open func setSessionDelegate(sessionDelegate: ClientSessionDelegate) -> ClientBu
21062127
})
21072128
}
21082129

2130+
open func simplifiedSlidingSync(enable: Bool) -> ClientBuilder {
2131+
return try! FfiConverterTypeClientBuilder.lift(try! rustCall() {
2132+
uniffi_matrix_sdk_ffi_fn_method_clientbuilder_simplified_sliding_sync(self.uniffiClonePointer(),
2133+
FfiConverterBool.lower(enable),$0
2134+
)
2135+
})
2136+
}
2137+
21092138
open func slidingSyncProxy(slidingSyncProxy: String?) -> ClientBuilder {
21102139
return try! FfiConverterTypeClientBuilder.lift(try! rustCall() {
21112140
uniffi_matrix_sdk_ffi_fn_method_clientbuilder_sliding_sync_proxy(self.uniffiClonePointer(),
@@ -6474,8 +6503,6 @@ public protocol RoomListItemProtocol : AnyObject {
64746503

64756504
func subscribe(settings: RoomSubscription?)
64766505

6477-
func unsubscribe()
6478-
64796506
}
64806507

64816508
open class RoomListItem:
@@ -6674,12 +6701,6 @@ open func subscribe(settings: RoomSubscription?) {try! rustCall() {
66746701
}
66756702
}
66766703

6677-
open func unsubscribe() {try! rustCall() {
6678-
uniffi_matrix_sdk_ffi_fn_method_roomlistitem_unsubscribe(self.uniffiClonePointer(),$0
6679-
)
6680-
}
6681-
}
6682-
66836704

66846705
}
66856706

@@ -25867,6 +25888,9 @@ private var initializationResult: InitializationResult = {
2586725888
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_automatic_token_refresh() != 43839) {
2586825889
return InitializationResult.apiChecksumMismatch
2586925890
}
25891+
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_built_in_root_certificates() != 47525) {
25892+
return InitializationResult.apiChecksumMismatch
25893+
}
2587025894
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_ssl_verification() != 2334) {
2587125895
return InitializationResult.apiChecksumMismatch
2587225896
}
@@ -25897,6 +25921,9 @@ private var initializationResult: InitializationResult = {
2589725921
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_set_session_delegate() != 8576) {
2589825922
return InitializationResult.apiChecksumMismatch
2589925923
}
25924+
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_simplified_sliding_sync() != 7554) {
25925+
return InitializationResult.apiChecksumMismatch
25926+
}
2590025927
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_sliding_sync_proxy() != 15622) {
2590125928
return InitializationResult.apiChecksumMismatch
2590225929
}
@@ -26407,9 +26434,6 @@ private var initializationResult: InitializationResult = {
2640726434
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_subscribe() != 60003) {
2640826435
return InitializationResult.apiChecksumMismatch
2640926436
}
26410-
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_unsubscribe() != 45026) {
26411-
return InitializationResult.apiChecksumMismatch
26412-
}
2641326437
if (uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_all_rooms() != 49704) {
2641426438
return InitializationResult.apiChecksumMismatch
2641526439
}

0 commit comments

Comments
 (0)