Update the SDK. (#5369)

This commit is contained in:
Doug
2026-04-09 17:26:12 +01:00
committed by GitHub
parent b05ab3ac0b
commit 9aa58aaf10
4 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -10019,7 +10019,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.04.08; version = 26.04.09;
}; };
}; };
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = { 701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
@@ -158,8 +158,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" : "5e29106fa819972e5aaf5d9e1e440bc206d649ea", "revision" : "aa73f6e49bdb5650739ba41ce566e81ee4815d4b",
"version" : "26.4.8" "version" : "26.4.9"
} }
}, },
{ {
@@ -11525,17 +11525,17 @@ open class LazyTimelineItemProviderSDKMock: MatrixRustSDK.LazyTimelineItemProvid
} }
} }
//MARK: - latestContentRaw //MARK: - latestJson
open var latestContentRawUnderlyingCallsCount = 0 open var latestJsonUnderlyingCallsCount = 0
open var latestContentRawCallsCount: Int { open var latestJsonCallsCount: Int {
get { get {
if Thread.isMainThread { if Thread.isMainThread {
return latestContentRawUnderlyingCallsCount return latestJsonUnderlyingCallsCount
} else { } else {
var returnValue: Int? = nil var returnValue: Int? = nil
DispatchQueue.main.sync { DispatchQueue.main.sync {
returnValue = latestContentRawUnderlyingCallsCount returnValue = latestJsonUnderlyingCallsCount
} }
return returnValue! return returnValue!
@@ -11543,27 +11543,27 @@ open class LazyTimelineItemProviderSDKMock: MatrixRustSDK.LazyTimelineItemProvid
} }
set { set {
if Thread.isMainThread { if Thread.isMainThread {
latestContentRawUnderlyingCallsCount = newValue latestJsonUnderlyingCallsCount = newValue
} else { } else {
DispatchQueue.main.sync { DispatchQueue.main.sync {
latestContentRawUnderlyingCallsCount = newValue latestJsonUnderlyingCallsCount = newValue
} }
} }
} }
} }
open var latestContentRawCalled: Bool { open var latestJsonCalled: Bool {
return latestContentRawCallsCount > 0 return latestJsonCallsCount > 0
} }
open var latestContentRawUnderlyingReturnValue: String? open var latestJsonUnderlyingReturnValue: String?
open var latestContentRawReturnValue: String? { open var latestJsonReturnValue: String? {
get { get {
if Thread.isMainThread { if Thread.isMainThread {
return latestContentRawUnderlyingReturnValue return latestJsonUnderlyingReturnValue
} else { } else {
var returnValue: String?? = nil var returnValue: String?? = nil
DispatchQueue.main.sync { DispatchQueue.main.sync {
returnValue = latestContentRawUnderlyingReturnValue returnValue = latestJsonUnderlyingReturnValue
} }
return returnValue! return returnValue!
@@ -11571,22 +11571,22 @@ open class LazyTimelineItemProviderSDKMock: MatrixRustSDK.LazyTimelineItemProvid
} }
set { set {
if Thread.isMainThread { if Thread.isMainThread {
latestContentRawUnderlyingReturnValue = newValue latestJsonUnderlyingReturnValue = newValue
} else { } else {
DispatchQueue.main.sync { DispatchQueue.main.sync {
latestContentRawUnderlyingReturnValue = newValue latestJsonUnderlyingReturnValue = newValue
} }
} }
} }
} }
open var latestContentRawClosure: (() -> String?)? open var latestJsonClosure: (() -> String?)?
open override func latestContentRaw() -> String? { open override func latestJson() -> String? {
latestContentRawCallsCount += 1 latestJsonCallsCount += 1
if let latestContentRawClosure = latestContentRawClosure { if let latestJsonClosure = latestJsonClosure {
return latestContentRawClosure() return latestJsonClosure()
} else { } else {
return latestContentRawReturnValue return latestJsonReturnValue
} }
} }
} }
+1 -1
View File
@@ -74,7 +74,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.04.08 exactVersion: 26.04.09
# path: ../matrix-rust-sdk # path: ../matrix-rust-sdk
Compound: Compound:
path: compound-ios path: compound-ios