Skip to content

Commit

Permalink
Bump the RustSDK to v1.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Sep 7, 2023
1 parent 3bc474f commit eecd862
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion ElementX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5579,7 +5579,7 @@
repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift";
requirement = {
kind = exactVersion;
version = 1.1.9;
version = 1.1.10;
};
};
821C67C9A7F8CC3FD41B28B4 /* XCRemoteSwiftPackageReference "emojibase-bindings" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/matrix-org/matrix-rust-components-swift",
"state" : {
"revision" : "c6b3c6cace0f4d35af98772ca944e90dc65e69f0",
"version" : "1.1.9"
"revision" : "73b1199017b79c210fb0dc93b3513d9bfc89210c",
"version" : "1.1.10"
}
},
{
Expand Down Expand Up @@ -244,7 +244,7 @@
{
"identity" : "swiftui-introspect",
"kind" : "remoteSourceControl",
"location" : "https://github.com/siteline/SwiftUI-Introspect",
"location" : "https://github.com/siteline/SwiftUI-Introspect.git",
"state" : {
"revision" : "b94da693e57eaf79d16464b8b7c90d09cba4e290",
"version" : "0.9.2"
Expand Down
30 changes: 17 additions & 13 deletions ElementX/Sources/Mocks/Generated/SDKGeneratedMocks.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 2.0.2 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.0.3 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

// swiftlint:disable all
Expand Down Expand Up @@ -400,23 +400,27 @@ class SDKClientMock: SDKClientProtocol {
}
//MARK: - notificationClient

public var notificationClientThrowableError: Error?
public var notificationClientCallsCount = 0
public var notificationClientCalled: Bool {
return notificationClientCallsCount > 0
public var notificationClientProcessSetupThrowableError: Error?
public var notificationClientProcessSetupCallsCount = 0
public var notificationClientProcessSetupCalled: Bool {
return notificationClientProcessSetupCallsCount > 0
}
public var notificationClientReturnValue: NotificationClientBuilder!
public var notificationClientClosure: (() throws -> NotificationClientBuilder)?
public var notificationClientProcessSetupReceivedProcessSetup: NotificationProcessSetup?
public var notificationClientProcessSetupReceivedInvocations: [NotificationProcessSetup] = []
public var notificationClientProcessSetupReturnValue: NotificationClientBuilder!
public var notificationClientProcessSetupClosure: ((NotificationProcessSetup) throws -> NotificationClientBuilder)?

public func notificationClient() throws -> NotificationClientBuilder {
if let error = notificationClientThrowableError {
public func notificationClient(processSetup: NotificationProcessSetup) throws -> NotificationClientBuilder {
if let error = notificationClientProcessSetupThrowableError {
throw error
}
notificationClientCallsCount += 1
if let notificationClientClosure = notificationClientClosure {
return try notificationClientClosure()
notificationClientProcessSetupCallsCount += 1
notificationClientProcessSetupReceivedProcessSetup = processSetup
notificationClientProcessSetupReceivedInvocations.append(processSetup)
if let notificationClientProcessSetupClosure = notificationClientProcessSetupClosure {
return try notificationClientProcessSetupClosure(processSetup)
} else {
return notificationClientReturnValue
return notificationClientProcessSetupReturnValue
}
}
//MARK: - restoreSession
Expand Down
3 changes: 1 addition & 2 deletions ElementX/Sources/Services/Client/ClientProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,7 @@ class ClientProxy: ClientProxyProtocol {
do {
let syncService = try await client
.syncService()
.withEncryptionSync(withCrossProcessLock: true,
appIdentifier: "MainApp")
.withCrossProcessLock(appIdentifier: "MainApp")
.finish()
let roomListService = syncService.roomListService()

Expand Down
3 changes: 1 addition & 2 deletions NSE/Sources/Other/NSEUserSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ final class NSEUserSession {
try baseClient.restoreSession(session: credentials.restorationToken.session)

notificationClient = try baseClient
.notificationClient()
.retryDecryption(withCrossProcessLock: true)
.notificationClient(processSetup: .multipleProcesses)
.filterByPushRules()
.finish()
}
Expand Down
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ packages:
# Element/Matrix dependencies
MatrixRustSDK:
url: https://github.com/matrix-org/matrix-rust-components-swift
exactVersion: 1.1.9
exactVersion: 1.1.10
# path: ../matrix-rust-sdk
DesignKit:
path: DesignKit
Expand Down

0 comments on commit eecd862

Please sign in to comment.