Skip to content

Commit

Permalink
Bump the SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Jul 18, 2024
1 parent b9e5f85 commit 4c61e46
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 40 deletions.
2 changes: 1 addition & 1 deletion ElementX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7449,7 +7449,7 @@
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
requirement = {
kind = exactVersion;
version = 1.0.25;
version = 1.0.26;
};
};
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/matrix-rust-components-swift",
"state" : {
"revision" : "dd9e0d89d65be16c3db1a14a121543e0af326536",
"version" : "1.0.25"
"revision" : "29a19a07df68a5fe97431d08c944ced27e791ae3",
"version" : "1.0.26"
}
},
{
Expand Down
172 changes: 136 additions & 36 deletions ElementX/Sources/Mocks/Generated/SDKGeneratedMocks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4041,6 +4041,71 @@ open class ClientBuilderSDKMock: MatrixRustSDK.ClientBuilder {
}
}

//MARK: - disableBuiltInRootCertificates

var disableBuiltInRootCertificatesUnderlyingCallsCount = 0
open var disableBuiltInRootCertificatesCallsCount: Int {
get {
if Thread.isMainThread {
return disableBuiltInRootCertificatesUnderlyingCallsCount
} else {
var returnValue: Int? = nil
DispatchQueue.main.sync {
returnValue = disableBuiltInRootCertificatesUnderlyingCallsCount
}

return returnValue!
}
}
set {
if Thread.isMainThread {
disableBuiltInRootCertificatesUnderlyingCallsCount = newValue
} else {
DispatchQueue.main.sync {
disableBuiltInRootCertificatesUnderlyingCallsCount = newValue
}
}
}
}
open var disableBuiltInRootCertificatesCalled: Bool {
return disableBuiltInRootCertificatesCallsCount > 0
}

var disableBuiltInRootCertificatesUnderlyingReturnValue: ClientBuilder!
open var disableBuiltInRootCertificatesReturnValue: ClientBuilder! {
get {
if Thread.isMainThread {
return disableBuiltInRootCertificatesUnderlyingReturnValue
} else {
var returnValue: ClientBuilder? = nil
DispatchQueue.main.sync {
returnValue = disableBuiltInRootCertificatesUnderlyingReturnValue
}

return returnValue!
}
}
set {
if Thread.isMainThread {
disableBuiltInRootCertificatesUnderlyingReturnValue = newValue
} else {
DispatchQueue.main.sync {
disableBuiltInRootCertificatesUnderlyingReturnValue = newValue
}
}
}
}
open var disableBuiltInRootCertificatesClosure: (() -> ClientBuilder)?

open override func disableBuiltInRootCertificates() -> ClientBuilder {
disableBuiltInRootCertificatesCallsCount += 1
if let disableBuiltInRootCertificatesClosure = disableBuiltInRootCertificatesClosure {
return disableBuiltInRootCertificatesClosure()
} else {
return disableBuiltInRootCertificatesReturnValue
}
}

//MARK: - disableSslVerification

var disableSslVerificationUnderlyingCallsCount = 0
Expand Down Expand Up @@ -4739,6 +4804,77 @@ open class ClientBuilderSDKMock: MatrixRustSDK.ClientBuilder {
}
}

//MARK: - simplifiedSlidingSync

var simplifiedSlidingSyncEnableUnderlyingCallsCount = 0
open var simplifiedSlidingSyncEnableCallsCount: Int {
get {
if Thread.isMainThread {
return simplifiedSlidingSyncEnableUnderlyingCallsCount
} else {
var returnValue: Int? = nil
DispatchQueue.main.sync {
returnValue = simplifiedSlidingSyncEnableUnderlyingCallsCount
}

return returnValue!
}
}
set {
if Thread.isMainThread {
simplifiedSlidingSyncEnableUnderlyingCallsCount = newValue
} else {
DispatchQueue.main.sync {
simplifiedSlidingSyncEnableUnderlyingCallsCount = newValue
}
}
}
}
open var simplifiedSlidingSyncEnableCalled: Bool {
return simplifiedSlidingSyncEnableCallsCount > 0
}
open var simplifiedSlidingSyncEnableReceivedEnable: Bool?
open var simplifiedSlidingSyncEnableReceivedInvocations: [Bool] = []

var simplifiedSlidingSyncEnableUnderlyingReturnValue: ClientBuilder!
open var simplifiedSlidingSyncEnableReturnValue: ClientBuilder! {
get {
if Thread.isMainThread {
return simplifiedSlidingSyncEnableUnderlyingReturnValue
} else {
var returnValue: ClientBuilder? = nil
DispatchQueue.main.sync {
returnValue = simplifiedSlidingSyncEnableUnderlyingReturnValue
}

return returnValue!
}
}
set {
if Thread.isMainThread {
simplifiedSlidingSyncEnableUnderlyingReturnValue = newValue
} else {
DispatchQueue.main.sync {
simplifiedSlidingSyncEnableUnderlyingReturnValue = newValue
}
}
}
}
open var simplifiedSlidingSyncEnableClosure: ((Bool) -> ClientBuilder)?

open override func simplifiedSlidingSync(enable: Bool) -> ClientBuilder {
simplifiedSlidingSyncEnableCallsCount += 1
simplifiedSlidingSyncEnableReceivedEnable = enable
DispatchQueue.main.async {
self.simplifiedSlidingSyncEnableReceivedInvocations.append(enable)
}
if let simplifiedSlidingSyncEnableClosure = simplifiedSlidingSyncEnableClosure {
return simplifiedSlidingSyncEnableClosure(enable)
} else {
return simplifiedSlidingSyncEnableReturnValue
}
}

//MARK: - slidingSyncProxy

var slidingSyncProxySlidingSyncProxyUnderlyingCallsCount = 0
Expand Down Expand Up @@ -15494,42 +15630,6 @@ open class RoomListItemSDKMock: MatrixRustSDK.RoomListItem {
}
subscribeSettingsClosure?(settings)
}

//MARK: - unsubscribe

var unsubscribeUnderlyingCallsCount = 0
open var unsubscribeCallsCount: Int {
get {
if Thread.isMainThread {
return unsubscribeUnderlyingCallsCount
} else {
var returnValue: Int? = nil
DispatchQueue.main.sync {
returnValue = unsubscribeUnderlyingCallsCount
}

return returnValue!
}
}
set {
if Thread.isMainThread {
unsubscribeUnderlyingCallsCount = newValue
} else {
DispatchQueue.main.sync {
unsubscribeUnderlyingCallsCount = newValue
}
}
}
}
open var unsubscribeCalled: Bool {
return unsubscribeCallsCount > 0
}
open var unsubscribeClosure: (() -> Void)?

open override func unsubscribe() {
unsubscribeCallsCount += 1
unsubscribeClosure?()
}
}
open class RoomListServiceSDKMock: MatrixRustSDK.RoomListService {
init() {
Expand Down
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ packages:
# Element/Matrix dependencies
MatrixRustSDK:
url: https://github.com/element-hq/matrix-rust-components-swift
exactVersion: 1.0.25
exactVersion: 1.0.26
# path: ../matrix-rust-sdk
Compound:
url: https://github.com/element-hq/compound-ios
Expand Down

0 comments on commit 4c61e46

Please sign in to comment.