Bump the RustSDK to v25.12.09

This commit is contained in:
Stefan Ceriu
2025-12-09 21:10:19 +02:00
committed by Stefan Ceriu
parent 81a43048e4
commit 82ee555844
4 changed files with 69 additions and 4 deletions
+1 -1
View File
@@ -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" */ = {
@@ -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"
}
},
{
@@ -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() {
+1 -1
View File
@@ -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