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
@@ -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() {