From 5d12cf9f7e8ecee4b46dd1f291cd9ff4da2054d4 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 9 Dec 2025 21:10:19 +0200 Subject: [PATCH] Bump the RustSDK to v25.12.09 --- ElementX.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/swiftpm/Package.resolved | 4 +- .../Mocks/Generated/SDKGeneratedMocks.swift | 65 +++++++++++++++++++ project.yml | 2 +- 4 files changed, 69 insertions(+), 4 deletions(-) diff --git a/ElementX.xcodeproj/project.pbxproj b/ElementX.xcodeproj/project.pbxproj index 9959e3ec2..265bc770b 100644 --- a/ElementX.xcodeproj/project.pbxproj +++ b/ElementX.xcodeproj/project.pbxproj @@ -9538,7 +9538,7 @@ repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift"; requirement = { kind = exactVersion; - version = 25.12.07; + version = 25.12.09; }; }; 701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = { diff --git a/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 268b27c1e..442842b83 100644 --- a/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -158,8 +158,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/element-hq/matrix-rust-components-swift", "state" : { - "revision" : "9fc6389d79cb309117cf2026b787d6274ac51ad2", - "version" : "25.12.7" + "revision" : "7fb8ca4b8c04e849c6142b94aa2190b56e2cfe52", + "version" : "25.12.9" } }, { diff --git a/ElementX/Sources/Mocks/Generated/SDKGeneratedMocks.swift b/ElementX/Sources/Mocks/Generated/SDKGeneratedMocks.swift index 9ba89e42d..9b9e564f6 100644 --- a/ElementX/Sources/Mocks/Generated/SDKGeneratedMocks.swift +++ b/ElementX/Sources/Mocks/Generated/SDKGeneratedMocks.swift @@ -12857,6 +12857,71 @@ open class QrCodeDataSDKMock: MatrixRustSDK.QrCodeData, @unchecked Sendable { return serverNameReturnValue } } + + //MARK: - toBytes + + var toBytesUnderlyingCallsCount = 0 + open var toBytesCallsCount: Int { + get { + if Thread.isMainThread { + return toBytesUnderlyingCallsCount + } else { + var returnValue: Int? = nil + DispatchQueue.main.sync { + returnValue = toBytesUnderlyingCallsCount + } + + return returnValue! + } + } + set { + if Thread.isMainThread { + toBytesUnderlyingCallsCount = newValue + } else { + DispatchQueue.main.sync { + toBytesUnderlyingCallsCount = newValue + } + } + } + } + open var toBytesCalled: Bool { + return toBytesCallsCount > 0 + } + + var toBytesUnderlyingReturnValue: Data! + open var toBytesReturnValue: Data! { + get { + if Thread.isMainThread { + return toBytesUnderlyingReturnValue + } else { + var returnValue: Data? = nil + DispatchQueue.main.sync { + returnValue = toBytesUnderlyingReturnValue + } + + return returnValue! + } + } + set { + if Thread.isMainThread { + toBytesUnderlyingReturnValue = newValue + } else { + DispatchQueue.main.sync { + toBytesUnderlyingReturnValue = newValue + } + } + } + } + open var toBytesClosure: (() -> Data)? + + open override func toBytes() -> Data { + toBytesCallsCount += 1 + if let toBytesClosure = toBytesClosure { + return toBytesClosure() + } else { + return toBytesReturnValue + } + } } open class RoomSDKMock: MatrixRustSDK.Room, @unchecked Sendable { init() { diff --git a/project.yml b/project.yml index 029c026a5..79a70c6ce 100644 --- a/project.yml +++ b/project.yml @@ -71,7 +71,7 @@ packages: # Element/Matrix dependencies MatrixRustSDK: url: https://github.com/element-hq/matrix-rust-components-swift - exactVersion: 25.12.07 + exactVersion: 25.12.09 # path: ../matrix-rust-sdk Compound: path: compound-ios