Update the RustSDK to v26.03.02

This commit is contained in:
Stefan Ceriu
2026-03-02 15:05:48 +02:00
committed by Stefan Ceriu
parent 4441cac284
commit ca00a7a9d7
9 changed files with 12 additions and 75 deletions
+1 -1
View File
@@ -9829,7 +9829,7 @@
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift"; repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
requirement = { requirement = {
kind = exactVersion; kind = exactVersion;
version = 26.02.24; version = 26.03.02;
}; };
}; };
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = { 701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
@@ -1,5 +1,5 @@
{ {
"originHash" : "535c4d88d082716c37209d98cfd37fe407a0e04be32c7557518b5055b6accb3b", "originHash" : "c8d3524e489088d57c95c07d456b207dd2173bee60536bc6267d5fa344e343bf",
"pins" : [ "pins" : [
{ {
"identity" : "compound-design-tokens", "identity" : "compound-design-tokens",
@@ -159,8 +159,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/matrix-rust-components-swift", "location" : "https://github.com/element-hq/matrix-rust-components-swift",
"state" : { "state" : {
"revision" : "4773764d92fb0a3a212b39bc54cd8399d43d482e", "revision" : "4051d59a3ab0eb0de810e762c23bd424f9ebc693",
"version" : "26.2.24" "version" : "26.3.2"
} }
}, },
{ {
@@ -23,7 +23,6 @@ extension ClientBuilder {
threadsEnabled: Bool) -> ClientBuilder { threadsEnabled: Bool) -> ClientBuilder {
var builder = ClientBuilder() var builder = ClientBuilder()
.crossProcessLockConfig(crossProcessLockConfig: .multiProcess(holderName: InfoPlistReader.main.bundleIdentifier)) .crossProcessLockConfig(crossProcessLockConfig: .multiProcess(holderName: InfoPlistReader.main.bundleIdentifier))
.enableOidcRefreshLock()
.setSessionDelegate(sessionDelegate: sessionDelegate) .setSessionDelegate(sessionDelegate: sessionDelegate)
.userAgent(userAgent: UserAgentBuilder.makeASCIIUserAgent()) .userAgent(userAgent: UserAgentBuilder.makeASCIIUserAgent())
.threadsEnabled(enabled: threadsEnabled, threadSubscriptions: threadsEnabled) .threadsEnabled(enabled: threadsEnabled, threadSubscriptions: threadsEnabled)
+2 -2
View File
@@ -199,8 +199,8 @@ extension SDKListener: KnockRequestsListener where T == [KnockRequest] {
// MARK: TimelineProxy // MARK: TimelineProxy
extension SDKListener: PaginationStatusListener where T == RoomPaginationStatus { extension SDKListener: PaginationStatusListener where T == PaginationStatus {
func onUpdate(status: RoomPaginationStatus) { func onUpdate(status: PaginationStatus) {
onUpdateClosure(status) onUpdateClosure(status)
} }
} }
@@ -88,7 +88,7 @@ class SettingsScreenViewModel: SettingsScreenViewModelType, SettingsScreenViewMo
await userSession.clientProxy.loadUserAvatarURL() await userSession.clientProxy.loadUserAvatarURL()
await userSession.clientProxy.loadUserDisplayName() await userSession.clientProxy.loadUserDisplayName()
await state.accountProfileURL = userSession.clientProxy.accountURL(action: .profile) await state.accountProfileURL = userSession.clientProxy.accountURL(action: .profile)
await state.accountSessionsListURL = userSession.clientProxy.accountURL(action: .sessionsList) await state.accountSessionsListURL = userSession.clientProxy.accountURL(action: .devicesList)
} }
} }
@@ -585,7 +585,7 @@ final class TimelineProxy: TimelineProxyProtocol {
private func subscribeToPagination() async { private func subscribeToPagination() async {
switch kind { switch kind {
case .live: case .live:
let backPaginationListener = SDKListener<RoomPaginationStatus> { [weak self] status in let backPaginationListener = SDKListener<PaginationStatus> { [weak self] status in
guard let self else { guard let self else {
return return
} }
+3
View File
@@ -109,6 +109,9 @@ final class NSEUserSession: NSEUserSessionProtocol {
case .eventFilteredOut: case .eventFilteredOut:
MXLog.warning("Notification event filtered out - roomID: \(roomID) eventID: \(eventID)") MXLog.warning("Notification event filtered out - roomID: \(roomID) eventID: \(eventID)")
return nil return nil
case .eventRedacted:
MXLog.warning("Notification event redacted - roomID: \(roomID) eventID: \(eventID)")
return nil
} }
} catch { } catch {
MXLog.error("Could not get notification's content creating an empty notification instead, error: \(error)") MXLog.error("Could not get notification's content creating an empty notification instead, error: \(error)")
@@ -6891,71 +6891,6 @@ open class ClientBuilderSDKMock: MatrixRustSDK.ClientBuilder, @unchecked Sendabl
} }
} }
//MARK: - enableOidcRefreshLock
open var enableOidcRefreshLockUnderlyingCallsCount = 0
open var enableOidcRefreshLockCallsCount: Int {
get {
if Thread.isMainThread {
return enableOidcRefreshLockUnderlyingCallsCount
} else {
var returnValue: Int? = nil
DispatchQueue.main.sync {
returnValue = enableOidcRefreshLockUnderlyingCallsCount
}
return returnValue!
}
}
set {
if Thread.isMainThread {
enableOidcRefreshLockUnderlyingCallsCount = newValue
} else {
DispatchQueue.main.sync {
enableOidcRefreshLockUnderlyingCallsCount = newValue
}
}
}
}
open var enableOidcRefreshLockCalled: Bool {
return enableOidcRefreshLockCallsCount > 0
}
open var enableOidcRefreshLockUnderlyingReturnValue: ClientBuilder!
open var enableOidcRefreshLockReturnValue: ClientBuilder! {
get {
if Thread.isMainThread {
return enableOidcRefreshLockUnderlyingReturnValue
} else {
var returnValue: ClientBuilder? = nil
DispatchQueue.main.sync {
returnValue = enableOidcRefreshLockUnderlyingReturnValue
}
return returnValue!
}
}
set {
if Thread.isMainThread {
enableOidcRefreshLockUnderlyingReturnValue = newValue
} else {
DispatchQueue.main.sync {
enableOidcRefreshLockUnderlyingReturnValue = newValue
}
}
}
}
open var enableOidcRefreshLockClosure: (() -> ClientBuilder)?
open override func enableOidcRefreshLock() -> ClientBuilder {
enableOidcRefreshLockCallsCount += 1
if let enableOidcRefreshLockClosure = enableOidcRefreshLockClosure {
return enableOidcRefreshLockClosure()
} else {
return enableOidcRefreshLockReturnValue
}
}
//MARK: - enableShareHistoryOnInvite //MARK: - enableShareHistoryOnInvite
open var enableShareHistoryOnInviteEnableShareHistoryOnInviteUnderlyingCallsCount = 0 open var enableShareHistoryOnInviteEnableShareHistoryOnInviteUnderlyingCallsCount = 0
+1 -1
View File
@@ -73,7 +73,7 @@ packages:
# Element/Matrix dependencies # Element/Matrix dependencies
MatrixRustSDK: MatrixRustSDK:
url: https://github.com/element-hq/matrix-rust-components-swift url: https://github.com/element-hq/matrix-rust-components-swift
exactVersion: 26.02.24 exactVersion: 26.03.02
# path: ../matrix-rust-sdk # path: ../matrix-rust-sdk
Compound: Compound:
path: compound-ios path: compound-ios