Update SDK to 1.0.75-alpha (#1075)

* Update SDK to 1.0.75-alpha

* Fix mocks
This commit is contained in:
Alfonso Grillo 2023-06-14 10:49:59 +02:00 committed by GitHub
parent 09ed9ddff5
commit 1c2964c86d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 4 deletions

View File

@ -4856,7 +4856,7 @@
repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift";
requirement = {
kind = exactVersion;
version = "1.0.74-alpha";
version = "1.0.75-alpha";
};
};
96495DD8554E2F39D3954354 /* XCRemoteSwiftPackageReference "posthog-ios" */ = {

View File

@ -102,8 +102,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/matrix-org/matrix-rust-components-swift",
"state" : {
"revision" : "97a5fcc18cc201ee97239a76c1556dcbd0ff27fa",
"version" : "1.0.74-alpha"
"revision" : "c6e794f305a34453ed081be131b2eea719154bc5",
"version" : "1.0.75-alpha"
}
},
{

View File

@ -421,6 +421,27 @@ class SDKClientMock: SDKClientProtocol {
return roomsReturnValue
}
}
//MARK: - `roomList`
public var roomListThrowableError: Error?
public var roomListCallsCount = 0
public var roomListCalled: Bool {
return roomListCallsCount > 0
}
public var roomListReturnValue: RoomList!
public var roomListClosure: (() throws -> RoomList)?
public func `roomList`() throws -> RoomList {
if let error = roomListThrowableError {
throw error
}
roomListCallsCount += 1
if let roomListClosure = roomListClosure {
return try roomListClosure()
} else {
return roomListReturnValue
}
}
//MARK: - `searchUsers`
public var searchUsersSearchTermLimitThrowableError: Error?

View File

@ -44,7 +44,7 @@ include:
packages:
MatrixRustSDK:
url: https://github.com/matrix-org/matrix-rust-components-swift
exactVersion: 1.0.74-alpha
exactVersion: 1.0.75-alpha
# path: ../matrix-rust-sdk
DesignKit:
path: DesignKit