mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
sdk bump, last one for today I swear (#1134)
This commit is contained in:
@@ -5004,7 +5004,7 @@
|
|||||||
repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift";
|
repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = exactVersion;
|
kind = exactVersion;
|
||||||
version = "1.0.80-alpha";
|
version = "1.0.81-alpha";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
96495DD8554E2F39D3954354 /* XCRemoteSwiftPackageReference "posthog-ios" */ = {
|
96495DD8554E2F39D3954354 /* XCRemoteSwiftPackageReference "posthog-ios" */ = {
|
||||||
|
|||||||
@@ -111,8 +111,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/matrix-org/matrix-rust-components-swift",
|
"location" : "https://github.com/matrix-org/matrix-rust-components-swift",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "d34b870ed9e954b446a8f6db6afa7fa9d8f6c06a",
|
"revision" : "eb26d0b26995a36df31b3bd965088ccfbe612779",
|
||||||
"version" : "1.0.80-alpha"
|
"version" : "1.0.81-alpha"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,8 +40,6 @@ internal enum Asset {
|
|||||||
internal static let closeCircle = ImageAsset(name: "Images/close_circle")
|
internal static let closeCircle = ImageAsset(name: "Images/close_circle")
|
||||||
internal static let timelineComposerSendMessage = ImageAsset(name: "Images/timelineComposerSendMessage")
|
internal static let timelineComposerSendMessage = ImageAsset(name: "Images/timelineComposerSendMessage")
|
||||||
}
|
}
|
||||||
internal static let launchLogo = ImageAsset(name: "LaunchLogo")
|
|
||||||
internal static let onboardingBackground = ImageAsset(name: "OnboardingBackground")
|
|
||||||
}
|
}
|
||||||
// swiftlint:enable identifier_name line_length nesting type_body_length type_name
|
// swiftlint:enable identifier_name line_length nesting type_body_length type_name
|
||||||
|
|
||||||
|
|||||||
@@ -384,29 +384,54 @@ class SDKClientMock: SDKClientProtocol {
|
|||||||
logoutCallsCount += 1
|
logoutCallsCount += 1
|
||||||
try logoutClosure?()
|
try logoutClosure?()
|
||||||
}
|
}
|
||||||
//MARK: - `notificationSlidingSync`
|
//MARK: - `mainEncryptionSync`
|
||||||
|
|
||||||
public var notificationSlidingSyncIdListenerThrowableError: Error?
|
public var mainEncryptionSyncIdListenerThrowableError: Error?
|
||||||
public var notificationSlidingSyncIdListenerCallsCount = 0
|
public var mainEncryptionSyncIdListenerCallsCount = 0
|
||||||
public var notificationSlidingSyncIdListenerCalled: Bool {
|
public var mainEncryptionSyncIdListenerCalled: Bool {
|
||||||
return notificationSlidingSyncIdListenerCallsCount > 0
|
return mainEncryptionSyncIdListenerCallsCount > 0
|
||||||
}
|
}
|
||||||
public var notificationSlidingSyncIdListenerReceivedArguments: (`id`: String, `listener`: NotificationSyncListener)?
|
public var mainEncryptionSyncIdListenerReceivedArguments: (`id`: String, `listener`: EncryptionSyncListener)?
|
||||||
public var notificationSlidingSyncIdListenerReceivedInvocations: [(`id`: String, `listener`: NotificationSyncListener)] = []
|
public var mainEncryptionSyncIdListenerReceivedInvocations: [(`id`: String, `listener`: EncryptionSyncListener)] = []
|
||||||
public var notificationSlidingSyncIdListenerReturnValue: NotificationSync!
|
public var mainEncryptionSyncIdListenerReturnValue: EncryptionSync!
|
||||||
public var notificationSlidingSyncIdListenerClosure: ((String, NotificationSyncListener) throws -> NotificationSync)?
|
public var mainEncryptionSyncIdListenerClosure: ((String, EncryptionSyncListener) throws -> EncryptionSync)?
|
||||||
|
|
||||||
public func `notificationSlidingSync`(`id`: String, `listener`: NotificationSyncListener) throws -> NotificationSync {
|
public func `mainEncryptionSync`(`id`: String, `listener`: EncryptionSyncListener) throws -> EncryptionSync {
|
||||||
if let error = notificationSlidingSyncIdListenerThrowableError {
|
if let error = mainEncryptionSyncIdListenerThrowableError {
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
notificationSlidingSyncIdListenerCallsCount += 1
|
mainEncryptionSyncIdListenerCallsCount += 1
|
||||||
notificationSlidingSyncIdListenerReceivedArguments = (id: id, listener: listener)
|
mainEncryptionSyncIdListenerReceivedArguments = (id: id, listener: listener)
|
||||||
notificationSlidingSyncIdListenerReceivedInvocations.append((id: id, listener: listener))
|
mainEncryptionSyncIdListenerReceivedInvocations.append((id: id, listener: listener))
|
||||||
if let notificationSlidingSyncIdListenerClosure = notificationSlidingSyncIdListenerClosure {
|
if let mainEncryptionSyncIdListenerClosure = mainEncryptionSyncIdListenerClosure {
|
||||||
return try notificationSlidingSyncIdListenerClosure(`id`, `listener`)
|
return try mainEncryptionSyncIdListenerClosure(`id`, `listener`)
|
||||||
} else {
|
} else {
|
||||||
return notificationSlidingSyncIdListenerReturnValue
|
return mainEncryptionSyncIdListenerReturnValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//MARK: - `notificationEncryptionSync`
|
||||||
|
|
||||||
|
public var notificationEncryptionSyncIdListenerNumItersThrowableError: Error?
|
||||||
|
public var notificationEncryptionSyncIdListenerNumItersCallsCount = 0
|
||||||
|
public var notificationEncryptionSyncIdListenerNumItersCalled: Bool {
|
||||||
|
return notificationEncryptionSyncIdListenerNumItersCallsCount > 0
|
||||||
|
}
|
||||||
|
public var notificationEncryptionSyncIdListenerNumItersReceivedArguments: (`id`: String, `listener`: EncryptionSyncListener, `numIters`: UInt8)?
|
||||||
|
public var notificationEncryptionSyncIdListenerNumItersReceivedInvocations: [(`id`: String, `listener`: EncryptionSyncListener, `numIters`: UInt8)] = []
|
||||||
|
public var notificationEncryptionSyncIdListenerNumItersReturnValue: EncryptionSync!
|
||||||
|
public var notificationEncryptionSyncIdListenerNumItersClosure: ((String, EncryptionSyncListener, UInt8) throws -> EncryptionSync)?
|
||||||
|
|
||||||
|
public func `notificationEncryptionSync`(`id`: String, `listener`: EncryptionSyncListener, `numIters`: UInt8) throws -> EncryptionSync {
|
||||||
|
if let error = notificationEncryptionSyncIdListenerNumItersThrowableError {
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
notificationEncryptionSyncIdListenerNumItersCallsCount += 1
|
||||||
|
notificationEncryptionSyncIdListenerNumItersReceivedArguments = (id: id, listener: listener, numIters: numIters)
|
||||||
|
notificationEncryptionSyncIdListenerNumItersReceivedInvocations.append((id: id, listener: listener, numIters: numIters))
|
||||||
|
if let notificationEncryptionSyncIdListenerNumItersClosure = notificationEncryptionSyncIdListenerNumItersClosure {
|
||||||
|
return try notificationEncryptionSyncIdListenerNumItersClosure(`id`, `listener`, `numIters`)
|
||||||
|
} else {
|
||||||
|
return notificationEncryptionSyncIdListenerNumItersReturnValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//MARK: - `restoreSession`
|
//MARK: - `restoreSession`
|
||||||
@@ -450,6 +475,27 @@ class SDKClientMock: SDKClientProtocol {
|
|||||||
return roomListReturnValue
|
return roomListReturnValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//MARK: - `roomListWithEncryption`
|
||||||
|
|
||||||
|
public var roomListWithEncryptionThrowableError: Error?
|
||||||
|
public var roomListWithEncryptionCallsCount = 0
|
||||||
|
public var roomListWithEncryptionCalled: Bool {
|
||||||
|
return roomListWithEncryptionCallsCount > 0
|
||||||
|
}
|
||||||
|
public var roomListWithEncryptionReturnValue: RoomList!
|
||||||
|
public var roomListWithEncryptionClosure: (() throws -> RoomList)?
|
||||||
|
|
||||||
|
public func `roomListWithEncryption`() throws -> RoomList {
|
||||||
|
if let error = roomListWithEncryptionThrowableError {
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
roomListWithEncryptionCallsCount += 1
|
||||||
|
if let roomListWithEncryptionClosure = roomListWithEncryptionClosure {
|
||||||
|
return try roomListWithEncryptionClosure()
|
||||||
|
} else {
|
||||||
|
return roomListWithEncryptionReturnValue
|
||||||
|
}
|
||||||
|
}
|
||||||
//MARK: - `rooms`
|
//MARK: - `rooms`
|
||||||
|
|
||||||
public var roomsCallsCount = 0
|
public var roomsCallsCount = 0
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ class RoomScreenViewModelTests: XCTestCase {
|
|||||||
// Test
|
// Test
|
||||||
viewModel.context.send(viewAction: .tappedOnUser(userID: "bob"))
|
viewModel.context.send(viewAction: .tappedOnUser(userID: "bob"))
|
||||||
await Task.yield()
|
await Task.yield()
|
||||||
XCTAssertFalse(userIndicatorControllerMock.submitIndicatorDelayCalled)
|
XCTAssert(userIndicatorControllerMock.submitIndicatorDelayCallsCount == 1)
|
||||||
XCTAssert(roomProxyMock.getMemberUserIDCallsCount == 1)
|
XCTAssert(roomProxyMock.getMemberUserIDCallsCount == 1)
|
||||||
XCTAssertEqual(roomProxyMock.getMemberUserIDReceivedUserID, "bob")
|
XCTAssertEqual(roomProxyMock.getMemberUserIDReceivedUserID, "bob")
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ include:
|
|||||||
packages:
|
packages:
|
||||||
MatrixRustSDK:
|
MatrixRustSDK:
|
||||||
url: https://github.com/matrix-org/matrix-rust-components-swift
|
url: https://github.com/matrix-org/matrix-rust-components-swift
|
||||||
exactVersion: 1.0.80-alpha
|
exactVersion: 1.0.81-alpha
|
||||||
# path: ../matrix-rust-sdk
|
# path: ../matrix-rust-sdk
|
||||||
DesignKit:
|
DesignKit:
|
||||||
path: DesignKit
|
path: DesignKit
|
||||||
|
|||||||
Reference in New Issue
Block a user