mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Bump the RustSDK to v26.05.13
This commit is contained in:
@@ -10131,7 +10131,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.05.12;
|
version = 26.05.13;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"originHash" : "56ffe9d7d62816027f5ec24272e0c7117a5f241303febda32adb0b1e64a148f1",
|
"originHash" : "03817e609ee3e9e372d9320f569c830d82dd6dd0f4455b29822903349a85c61e",
|
||||||
"pins" : [
|
"pins" : [
|
||||||
{
|
{
|
||||||
"identity" : "compound-design-tokens",
|
"identity" : "compound-design-tokens",
|
||||||
@@ -167,8 +167,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" : "a6f7f2893a7afa249b464a7bee7c793875c07f8f",
|
"revision" : "7e9e15ca678dff7791dfacd736a603fcbb2d543f",
|
||||||
"version" : "26.5.12"
|
"version" : "26.5.13"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,14 +44,16 @@ class SpaceRoomListProxy: SpaceRoomListProxyProtocol {
|
|||||||
paginationStateSubject.send(paginationState)
|
paginationStateSubject.send(paginationState)
|
||||||
})
|
})
|
||||||
|
|
||||||
spaceRoomsHandle = spaceRoomList.subscribeToRoomUpdate(listener: SDKListener { [weak self] updates in
|
|
||||||
self?.handleUpdates(updates)
|
|
||||||
})
|
|
||||||
|
|
||||||
spaceServiceRoomHandle = spaceRoomList.subscribeToSpaceUpdates(listener: SDKListener { [weak self] spaceRoom in
|
spaceServiceRoomHandle = spaceRoomList.subscribeToSpaceUpdates(listener: SDKListener { [weak self] spaceRoom in
|
||||||
guard let spaceRoom else { return }
|
guard let spaceRoom else { return }
|
||||||
self?.spaceServiceRoomSubject.send(SpaceServiceRoom(spaceRoom: spaceRoom))
|
self?.spaceServiceRoomSubject.send(SpaceServiceRoom(spaceRoom: spaceRoom))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Task {
|
||||||
|
spaceRoomsHandle = await spaceRoomList.subscribeToRoomUpdate(listener: SDKListener { [weak self] updates in
|
||||||
|
self?.handleUpdates(updates)
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func paginate() async {
|
func paginate() async {
|
||||||
|
|||||||
+2
-2
@@ -24,8 +24,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/apple/swift-argument-parser",
|
"location" : "https://github.com/apple/swift-argument-parser",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "c5d11a805e765f52ba34ec7284bd4fcd6ba68615",
|
"revision" : "626b5b7b2f45e1b0b1c6f4a309296d1d21d7311b",
|
||||||
"version" : "1.7.0"
|
"version" : "1.7.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3507,6 +3507,46 @@ open class ClientSDKMock: MatrixRustSDK.Client, @unchecked Sendable {
|
|||||||
try await logoutClosure?()
|
try await logoutClosure?()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - markAllRoomsAsRead
|
||||||
|
|
||||||
|
open var markAllRoomsAsReadThrowableError: Error?
|
||||||
|
open var markAllRoomsAsReadUnderlyingCallsCount = 0
|
||||||
|
open var markAllRoomsAsReadCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return markAllRoomsAsReadUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = markAllRoomsAsReadUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
markAllRoomsAsReadUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
markAllRoomsAsReadUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var markAllRoomsAsReadCalled: Bool {
|
||||||
|
return markAllRoomsAsReadCallsCount > 0
|
||||||
|
}
|
||||||
|
open var markAllRoomsAsReadClosure: (() async throws -> Void)?
|
||||||
|
|
||||||
|
open override func markAllRoomsAsRead() async throws {
|
||||||
|
if let error = markAllRoomsAsReadThrowableError {
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
markAllRoomsAsReadCallsCount += 1
|
||||||
|
try await markAllRoomsAsReadClosure?()
|
||||||
|
}
|
||||||
|
|
||||||
//MARK: - newGrantLoginWithQrCodeHandler
|
//MARK: - newGrantLoginWithQrCodeHandler
|
||||||
|
|
||||||
open var newGrantLoginWithQrCodeHandlerUnderlyingCallsCount = 0
|
open var newGrantLoginWithQrCodeHandlerUnderlyingCallsCount = 0
|
||||||
@@ -3904,6 +3944,46 @@ open class ClientSDKMock: MatrixRustSDK.Client, @unchecked Sendable {
|
|||||||
try await optimizeStoresClosure?()
|
try await optimizeStoresClosure?()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - pause
|
||||||
|
|
||||||
|
open var pauseThrowableError: Error?
|
||||||
|
open var pauseUnderlyingCallsCount = 0
|
||||||
|
open var pauseCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return pauseUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = pauseUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
pauseUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
pauseUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var pauseCalled: Bool {
|
||||||
|
return pauseCallsCount > 0
|
||||||
|
}
|
||||||
|
open var pauseClosure: (() async throws -> Void)?
|
||||||
|
|
||||||
|
open override func pause() async throws {
|
||||||
|
if let error = pauseThrowableError {
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
pauseCallsCount += 1
|
||||||
|
try await pauseClosure?()
|
||||||
|
}
|
||||||
|
|
||||||
//MARK: - registerNotificationHandler
|
//MARK: - registerNotificationHandler
|
||||||
|
|
||||||
open var registerNotificationHandlerListenerUnderlyingCallsCount = 0
|
open var registerNotificationHandlerListenerUnderlyingCallsCount = 0
|
||||||
@@ -4302,6 +4382,46 @@ open class ClientSDKMock: MatrixRustSDK.Client, @unchecked Sendable {
|
|||||||
try await restoreSessionWithSessionRoomLoadSettingsClosure?(session, roomLoadSettings)
|
try await restoreSessionWithSessionRoomLoadSettingsClosure?(session, roomLoadSettings)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - resume
|
||||||
|
|
||||||
|
open var resumeThrowableError: Error?
|
||||||
|
open var resumeUnderlyingCallsCount = 0
|
||||||
|
open var resumeCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return resumeUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = resumeUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
resumeUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
resumeUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var resumeCalled: Bool {
|
||||||
|
return resumeCallsCount > 0
|
||||||
|
}
|
||||||
|
open var resumeClosure: (() async throws -> Void)?
|
||||||
|
|
||||||
|
open override func resume() async throws {
|
||||||
|
if let error = resumeThrowableError {
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
resumeCallsCount += 1
|
||||||
|
try await resumeClosure?()
|
||||||
|
}
|
||||||
|
|
||||||
//MARK: - roomAliasExists
|
//MARK: - roomAliasExists
|
||||||
|
|
||||||
open var roomAliasExistsRoomAliasThrowableError: Error?
|
open var roomAliasExistsRoomAliasThrowableError: Error?
|
||||||
@@ -7478,6 +7598,77 @@ open class ClientBuilderSDKMock: MatrixRustSDK.ClientBuilder, @unchecked Sendabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - dmRoomDefinition
|
||||||
|
|
||||||
|
open var dmRoomDefinitionDmRoomDefinitionUnderlyingCallsCount = 0
|
||||||
|
open var dmRoomDefinitionDmRoomDefinitionCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return dmRoomDefinitionDmRoomDefinitionUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = dmRoomDefinitionDmRoomDefinitionUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
dmRoomDefinitionDmRoomDefinitionUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
dmRoomDefinitionDmRoomDefinitionUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var dmRoomDefinitionDmRoomDefinitionCalled: Bool {
|
||||||
|
return dmRoomDefinitionDmRoomDefinitionCallsCount > 0
|
||||||
|
}
|
||||||
|
open var dmRoomDefinitionDmRoomDefinitionReceivedDmRoomDefinition: DmRoomDefinition?
|
||||||
|
open var dmRoomDefinitionDmRoomDefinitionReceivedInvocations: [DmRoomDefinition] = []
|
||||||
|
|
||||||
|
open var dmRoomDefinitionDmRoomDefinitionUnderlyingReturnValue: ClientBuilder!
|
||||||
|
open var dmRoomDefinitionDmRoomDefinitionReturnValue: ClientBuilder! {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return dmRoomDefinitionDmRoomDefinitionUnderlyingReturnValue
|
||||||
|
} else {
|
||||||
|
var returnValue: ClientBuilder? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = dmRoomDefinitionDmRoomDefinitionUnderlyingReturnValue
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
dmRoomDefinitionDmRoomDefinitionUnderlyingReturnValue = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
dmRoomDefinitionDmRoomDefinitionUnderlyingReturnValue = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var dmRoomDefinitionDmRoomDefinitionClosure: ((DmRoomDefinition) -> ClientBuilder)?
|
||||||
|
|
||||||
|
open override func dmRoomDefinition(dmRoomDefinition: DmRoomDefinition) -> ClientBuilder {
|
||||||
|
dmRoomDefinitionDmRoomDefinitionCallsCount += 1
|
||||||
|
dmRoomDefinitionDmRoomDefinitionReceivedDmRoomDefinition = dmRoomDefinition
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.dmRoomDefinitionDmRoomDefinitionReceivedInvocations.append(dmRoomDefinition)
|
||||||
|
}
|
||||||
|
if let dmRoomDefinitionDmRoomDefinitionClosure = dmRoomDefinitionDmRoomDefinitionClosure {
|
||||||
|
return dmRoomDefinitionDmRoomDefinitionClosure(dmRoomDefinition)
|
||||||
|
} else {
|
||||||
|
return dmRoomDefinitionDmRoomDefinitionReturnValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//MARK: - enableShareHistoryOnInvite
|
//MARK: - enableShareHistoryOnInvite
|
||||||
|
|
||||||
open var enableShareHistoryOnInviteEnableShareHistoryOnInviteUnderlyingCallsCount = 0
|
open var enableShareHistoryOnInviteEnableShareHistoryOnInviteUnderlyingCallsCount = 0
|
||||||
@@ -25031,12 +25222,12 @@ open class SpaceRoomListSDKMock: MatrixRustSDK.SpaceRoomList, @unchecked Sendabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
open var roomsClosure: (() -> [SpaceRoom])?
|
open var roomsClosure: (() async -> [SpaceRoom])?
|
||||||
|
|
||||||
open override func rooms() -> [SpaceRoom] {
|
open override func rooms() async -> [SpaceRoom] {
|
||||||
roomsCallsCount += 1
|
roomsCallsCount += 1
|
||||||
if let roomsClosure = roomsClosure {
|
if let roomsClosure = roomsClosure {
|
||||||
return roomsClosure()
|
return await roomsClosure()
|
||||||
} else {
|
} else {
|
||||||
return roomsReturnValue
|
return roomsReturnValue
|
||||||
}
|
}
|
||||||
@@ -25234,16 +25425,16 @@ open class SpaceRoomListSDKMock: MatrixRustSDK.SpaceRoomList, @unchecked Sendabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
open var subscribeToRoomUpdateListenerClosure: ((SpaceRoomListEntriesListener) -> TaskHandle)?
|
open var subscribeToRoomUpdateListenerClosure: ((SpaceRoomListEntriesListener) async -> TaskHandle)?
|
||||||
|
|
||||||
open override func subscribeToRoomUpdate(listener: SpaceRoomListEntriesListener) -> TaskHandle {
|
open override func subscribeToRoomUpdate(listener: SpaceRoomListEntriesListener) async -> TaskHandle {
|
||||||
subscribeToRoomUpdateListenerCallsCount += 1
|
subscribeToRoomUpdateListenerCallsCount += 1
|
||||||
subscribeToRoomUpdateListenerReceivedListener = listener
|
subscribeToRoomUpdateListenerReceivedListener = listener
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
self.subscribeToRoomUpdateListenerReceivedInvocations.append(listener)
|
self.subscribeToRoomUpdateListenerReceivedInvocations.append(listener)
|
||||||
}
|
}
|
||||||
if let subscribeToRoomUpdateListenerClosure = subscribeToRoomUpdateListenerClosure {
|
if let subscribeToRoomUpdateListenerClosure = subscribeToRoomUpdateListenerClosure {
|
||||||
return subscribeToRoomUpdateListenerClosure(listener)
|
return await subscribeToRoomUpdateListenerClosure(listener)
|
||||||
} else {
|
} else {
|
||||||
return subscribeToRoomUpdateListenerReturnValue
|
return subscribeToRoomUpdateListenerReturnValue
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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.05.12
|
exactVersion: 26.05.13
|
||||||
# path: ../matrix-rust-sdk
|
# path: ../matrix-rust-sdk
|
||||||
Compound:
|
Compound:
|
||||||
path: compound-ios
|
path: compound-ios
|
||||||
|
|||||||
Reference in New Issue
Block a user