Bump the RustSDK to v1.0.78-alpha

This commit is contained in:
Stefan Ceriu
2023-06-19 18:55:15 +03:00
committed by Stefan Ceriu
parent d120a53ebd
commit 3bbc16fd64
4 changed files with 40 additions and 15 deletions
@@ -384,6 +384,31 @@ class SDKClientMock: SDKClientProtocol {
logoutCallsCount += 1
try logoutClosure?()
}
//MARK: - `notificationSlidingSync`
public var notificationSlidingSyncIdListenerThrowableError: Error?
public var notificationSlidingSyncIdListenerCallsCount = 0
public var notificationSlidingSyncIdListenerCalled: Bool {
return notificationSlidingSyncIdListenerCallsCount > 0
}
public var notificationSlidingSyncIdListenerReceivedArguments: (`id`: String, `listener`: NotificationSyncListener)?
public var notificationSlidingSyncIdListenerReceivedInvocations: [(`id`: String, `listener`: NotificationSyncListener)] = []
public var notificationSlidingSyncIdListenerReturnValue: NotificationSync!
public var notificationSlidingSyncIdListenerClosure: ((String, NotificationSyncListener) throws -> NotificationSync)?
public func `notificationSlidingSync`(`id`: String, `listener`: NotificationSyncListener) throws -> NotificationSync {
if let error = notificationSlidingSyncIdListenerThrowableError {
throw error
}
notificationSlidingSyncIdListenerCallsCount += 1
notificationSlidingSyncIdListenerReceivedArguments = (id: id, listener: listener)
notificationSlidingSyncIdListenerReceivedInvocations.append((id: id, listener: listener))
if let notificationSlidingSyncIdListenerClosure = notificationSlidingSyncIdListenerClosure {
return try notificationSlidingSyncIdListenerClosure(`id`, `listener`)
} else {
return notificationSlidingSyncIdListenerReturnValue
}
}
//MARK: - `restoreSession`
public var restoreSessionSessionThrowableError: Error?