Update the SDK. (#6134)

Update the SDK handling API breaks.
This commit is contained in:
Doug
2026-09-08 13:48:52 +01:00
committed by GitHub
parent e32e1dd388
commit 0cff8bd98e
7 changed files with 19 additions and 68 deletions
@@ -17293,35 +17293,6 @@ open class SyncServiceBuilderSDKMock: MatrixRustSDK.SyncServiceBuilder, @uncheck
}
}
//MARK: - withProfilesExtension
private let withProfilesExtensionCallsCountLock = NSLock()
private var withProfilesExtensionUnderlyingCallsCount = 0
open var withProfilesExtensionCallsCount: Int {
get { withProfilesExtensionCallsCountLock.withLock { withProfilesExtensionUnderlyingCallsCount } }
set { withProfilesExtensionCallsCountLock.withLock { withProfilesExtensionUnderlyingCallsCount = newValue } }
}
open var withProfilesExtensionCalled: Bool {
return withProfilesExtensionCallsCount > 0
}
private let withProfilesExtensionReturnValueLock = NSLock()
open var withProfilesExtensionUnderlyingReturnValue: SyncServiceBuilder!
open var withProfilesExtensionReturnValue: SyncServiceBuilder! {
get { withProfilesExtensionReturnValueLock.withLock { withProfilesExtensionUnderlyingReturnValue } }
set { withProfilesExtensionReturnValueLock.withLock { withProfilesExtensionUnderlyingReturnValue = newValue } }
}
open var withProfilesExtensionClosure: (() -> SyncServiceBuilder)?
open override func withProfilesExtension() -> SyncServiceBuilder {
withProfilesExtensionCallsCountLock.withLock { withProfilesExtensionUnderlyingCallsCount += 1 }
if let withProfilesExtensionClosure = withProfilesExtensionClosure {
return withProfilesExtensionClosure()
} else {
return withProfilesExtensionReturnValue
}
}
//MARK: - withRoomListConnectionId
private let withRoomListConnectionIdConnectionIdCallsCountLock = NSLock()
@@ -19346,24 +19317,6 @@ open class TimelineEventSDKMock: MatrixRustSDK.TimelineEvent, @unchecked Sendabl
}
}
}
open class TimelineEventFilterSDKMock: MatrixRustSDK.TimelineEventFilter, @unchecked Sendable {
public init() {
super.init(noHandle: .init())
}
public required init(unsafeFromHandle handle: UInt64) {
fatalError("init(unsafeFromHandle:) has not been implemented")
}
fileprivate var handle: UInt64 {
get { return underlyingHandle }
set(value) { underlyingHandle = value }
}
fileprivate var underlyingHandle: UInt64!
static func reset()
{
}
}
open class TimelineItemSDKMock: MatrixRustSDK.TimelineItem, @unchecked Sendable {
public init() {
super.init(noHandle: .init())