mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
Bump the RustSDK to v25.04.02
This commit is contained in:
@@ -8549,7 +8549,7 @@
|
|||||||
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
|
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = exactVersion;
|
kind = exactVersion;
|
||||||
version = 25.03.31;
|
version = 25.04.02;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
||||||
|
|||||||
@@ -158,8 +158,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/element-hq/matrix-rust-components-swift",
|
"location" : "https://github.com/element-hq/matrix-rust-components-swift",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "271f8e34dd754ff6873350576d601442fe18b1d8",
|
"revision" : "1bc2c0b021107332e0691e288780e8a3adb87905",
|
||||||
"version" : "25.3.31"
|
"version" : "25.4.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2927,6 +2927,52 @@ open class ClientSDKMock: MatrixRustSDK.Client, @unchecked Sendable {
|
|||||||
try await restoreSessionSessionClosure?(session)
|
try await restoreSessionSessionClosure?(session)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - restoreSessionWith
|
||||||
|
|
||||||
|
open var restoreSessionWithSessionRoomLoadSettingsThrowableError: Error?
|
||||||
|
var restoreSessionWithSessionRoomLoadSettingsUnderlyingCallsCount = 0
|
||||||
|
open var restoreSessionWithSessionRoomLoadSettingsCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return restoreSessionWithSessionRoomLoadSettingsUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = restoreSessionWithSessionRoomLoadSettingsUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
restoreSessionWithSessionRoomLoadSettingsUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
restoreSessionWithSessionRoomLoadSettingsUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var restoreSessionWithSessionRoomLoadSettingsCalled: Bool {
|
||||||
|
return restoreSessionWithSessionRoomLoadSettingsCallsCount > 0
|
||||||
|
}
|
||||||
|
open var restoreSessionWithSessionRoomLoadSettingsReceivedArguments: (session: Session, roomLoadSettings: RoomLoadSettings)?
|
||||||
|
open var restoreSessionWithSessionRoomLoadSettingsReceivedInvocations: [(session: Session, roomLoadSettings: RoomLoadSettings)] = []
|
||||||
|
open var restoreSessionWithSessionRoomLoadSettingsClosure: ((Session, RoomLoadSettings) async throws -> Void)?
|
||||||
|
|
||||||
|
open override func restoreSessionWith(session: Session, roomLoadSettings: RoomLoadSettings) async throws {
|
||||||
|
if let error = restoreSessionWithSessionRoomLoadSettingsThrowableError {
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
restoreSessionWithSessionRoomLoadSettingsCallsCount += 1
|
||||||
|
restoreSessionWithSessionRoomLoadSettingsReceivedArguments = (session: session, roomLoadSettings: roomLoadSettings)
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.restoreSessionWithSessionRoomLoadSettingsReceivedInvocations.append((session: session, roomLoadSettings: roomLoadSettings))
|
||||||
|
}
|
||||||
|
try await restoreSessionWithSessionRoomLoadSettingsClosure?(session, roomLoadSettings)
|
||||||
|
}
|
||||||
|
|
||||||
//MARK: - roomAliasExists
|
//MARK: - roomAliasExists
|
||||||
|
|
||||||
open var roomAliasExistsRoomAliasThrowableError: Error?
|
open var roomAliasExistsRoomAliasThrowableError: Error?
|
||||||
@@ -5210,77 +5256,6 @@ open class ClientBuilderSDKMock: MatrixRustSDK.ClientBuilder, @unchecked Sendabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//MARK: - passphrase
|
|
||||||
|
|
||||||
var passphrasePassphraseUnderlyingCallsCount = 0
|
|
||||||
open var passphrasePassphraseCallsCount: Int {
|
|
||||||
get {
|
|
||||||
if Thread.isMainThread {
|
|
||||||
return passphrasePassphraseUnderlyingCallsCount
|
|
||||||
} else {
|
|
||||||
var returnValue: Int? = nil
|
|
||||||
DispatchQueue.main.sync {
|
|
||||||
returnValue = passphrasePassphraseUnderlyingCallsCount
|
|
||||||
}
|
|
||||||
|
|
||||||
return returnValue!
|
|
||||||
}
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if Thread.isMainThread {
|
|
||||||
passphrasePassphraseUnderlyingCallsCount = newValue
|
|
||||||
} else {
|
|
||||||
DispatchQueue.main.sync {
|
|
||||||
passphrasePassphraseUnderlyingCallsCount = newValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
open var passphrasePassphraseCalled: Bool {
|
|
||||||
return passphrasePassphraseCallsCount > 0
|
|
||||||
}
|
|
||||||
open var passphrasePassphraseReceivedPassphrase: String?
|
|
||||||
open var passphrasePassphraseReceivedInvocations: [String?] = []
|
|
||||||
|
|
||||||
var passphrasePassphraseUnderlyingReturnValue: ClientBuilder!
|
|
||||||
open var passphrasePassphraseReturnValue: ClientBuilder! {
|
|
||||||
get {
|
|
||||||
if Thread.isMainThread {
|
|
||||||
return passphrasePassphraseUnderlyingReturnValue
|
|
||||||
} else {
|
|
||||||
var returnValue: ClientBuilder? = nil
|
|
||||||
DispatchQueue.main.sync {
|
|
||||||
returnValue = passphrasePassphraseUnderlyingReturnValue
|
|
||||||
}
|
|
||||||
|
|
||||||
return returnValue!
|
|
||||||
}
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if Thread.isMainThread {
|
|
||||||
passphrasePassphraseUnderlyingReturnValue = newValue
|
|
||||||
} else {
|
|
||||||
DispatchQueue.main.sync {
|
|
||||||
passphrasePassphraseUnderlyingReturnValue = newValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
open var passphrasePassphraseClosure: ((String?) -> ClientBuilder)?
|
|
||||||
|
|
||||||
open override func passphrase(passphrase: String?) -> ClientBuilder {
|
|
||||||
passphrasePassphraseCallsCount += 1
|
|
||||||
passphrasePassphraseReceivedPassphrase = passphrase
|
|
||||||
DispatchQueue.main.async {
|
|
||||||
self.passphrasePassphraseReceivedInvocations.append(passphrase)
|
|
||||||
}
|
|
||||||
if let passphrasePassphraseClosure = passphrasePassphraseClosure {
|
|
||||||
return passphrasePassphraseClosure(passphrase)
|
|
||||||
} else {
|
|
||||||
return passphrasePassphraseReturnValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//MARK: - proxy
|
//MARK: - proxy
|
||||||
|
|
||||||
var proxyUrlUnderlyingCallsCount = 0
|
var proxyUrlUnderlyingCallsCount = 0
|
||||||
@@ -5707,6 +5682,219 @@ open class ClientBuilderSDKMock: MatrixRustSDK.ClientBuilder, @unchecked Sendabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - sessionCacheSize
|
||||||
|
|
||||||
|
var sessionCacheSizeCacheSizeUnderlyingCallsCount = 0
|
||||||
|
open var sessionCacheSizeCacheSizeCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return sessionCacheSizeCacheSizeUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = sessionCacheSizeCacheSizeUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
sessionCacheSizeCacheSizeUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
sessionCacheSizeCacheSizeUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var sessionCacheSizeCacheSizeCalled: Bool {
|
||||||
|
return sessionCacheSizeCacheSizeCallsCount > 0
|
||||||
|
}
|
||||||
|
open var sessionCacheSizeCacheSizeReceivedCacheSize: UInt32?
|
||||||
|
open var sessionCacheSizeCacheSizeReceivedInvocations: [UInt32?] = []
|
||||||
|
|
||||||
|
var sessionCacheSizeCacheSizeUnderlyingReturnValue: ClientBuilder!
|
||||||
|
open var sessionCacheSizeCacheSizeReturnValue: ClientBuilder! {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return sessionCacheSizeCacheSizeUnderlyingReturnValue
|
||||||
|
} else {
|
||||||
|
var returnValue: ClientBuilder? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = sessionCacheSizeCacheSizeUnderlyingReturnValue
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
sessionCacheSizeCacheSizeUnderlyingReturnValue = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
sessionCacheSizeCacheSizeUnderlyingReturnValue = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var sessionCacheSizeCacheSizeClosure: ((UInt32?) -> ClientBuilder)?
|
||||||
|
|
||||||
|
open override func sessionCacheSize(cacheSize: UInt32?) -> ClientBuilder {
|
||||||
|
sessionCacheSizeCacheSizeCallsCount += 1
|
||||||
|
sessionCacheSizeCacheSizeReceivedCacheSize = cacheSize
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.sessionCacheSizeCacheSizeReceivedInvocations.append(cacheSize)
|
||||||
|
}
|
||||||
|
if let sessionCacheSizeCacheSizeClosure = sessionCacheSizeCacheSizeClosure {
|
||||||
|
return sessionCacheSizeCacheSizeClosure(cacheSize)
|
||||||
|
} else {
|
||||||
|
return sessionCacheSizeCacheSizeReturnValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//MARK: - sessionJournalSizeLimit
|
||||||
|
|
||||||
|
var sessionJournalSizeLimitLimitUnderlyingCallsCount = 0
|
||||||
|
open var sessionJournalSizeLimitLimitCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return sessionJournalSizeLimitLimitUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = sessionJournalSizeLimitLimitUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
sessionJournalSizeLimitLimitUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
sessionJournalSizeLimitLimitUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var sessionJournalSizeLimitLimitCalled: Bool {
|
||||||
|
return sessionJournalSizeLimitLimitCallsCount > 0
|
||||||
|
}
|
||||||
|
open var sessionJournalSizeLimitLimitReceivedLimit: UInt32?
|
||||||
|
open var sessionJournalSizeLimitLimitReceivedInvocations: [UInt32?] = []
|
||||||
|
|
||||||
|
var sessionJournalSizeLimitLimitUnderlyingReturnValue: ClientBuilder!
|
||||||
|
open var sessionJournalSizeLimitLimitReturnValue: ClientBuilder! {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return sessionJournalSizeLimitLimitUnderlyingReturnValue
|
||||||
|
} else {
|
||||||
|
var returnValue: ClientBuilder? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = sessionJournalSizeLimitLimitUnderlyingReturnValue
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
sessionJournalSizeLimitLimitUnderlyingReturnValue = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
sessionJournalSizeLimitLimitUnderlyingReturnValue = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var sessionJournalSizeLimitLimitClosure: ((UInt32?) -> ClientBuilder)?
|
||||||
|
|
||||||
|
open override func sessionJournalSizeLimit(limit: UInt32?) -> ClientBuilder {
|
||||||
|
sessionJournalSizeLimitLimitCallsCount += 1
|
||||||
|
sessionJournalSizeLimitLimitReceivedLimit = limit
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.sessionJournalSizeLimitLimitReceivedInvocations.append(limit)
|
||||||
|
}
|
||||||
|
if let sessionJournalSizeLimitLimitClosure = sessionJournalSizeLimitLimitClosure {
|
||||||
|
return sessionJournalSizeLimitLimitClosure(limit)
|
||||||
|
} else {
|
||||||
|
return sessionJournalSizeLimitLimitReturnValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//MARK: - sessionPassphrase
|
||||||
|
|
||||||
|
var sessionPassphrasePassphraseUnderlyingCallsCount = 0
|
||||||
|
open var sessionPassphrasePassphraseCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return sessionPassphrasePassphraseUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = sessionPassphrasePassphraseUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
sessionPassphrasePassphraseUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
sessionPassphrasePassphraseUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var sessionPassphrasePassphraseCalled: Bool {
|
||||||
|
return sessionPassphrasePassphraseCallsCount > 0
|
||||||
|
}
|
||||||
|
open var sessionPassphrasePassphraseReceivedPassphrase: String?
|
||||||
|
open var sessionPassphrasePassphraseReceivedInvocations: [String?] = []
|
||||||
|
|
||||||
|
var sessionPassphrasePassphraseUnderlyingReturnValue: ClientBuilder!
|
||||||
|
open var sessionPassphrasePassphraseReturnValue: ClientBuilder! {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return sessionPassphrasePassphraseUnderlyingReturnValue
|
||||||
|
} else {
|
||||||
|
var returnValue: ClientBuilder? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = sessionPassphrasePassphraseUnderlyingReturnValue
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
sessionPassphrasePassphraseUnderlyingReturnValue = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
sessionPassphrasePassphraseUnderlyingReturnValue = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var sessionPassphrasePassphraseClosure: ((String?) -> ClientBuilder)?
|
||||||
|
|
||||||
|
open override func sessionPassphrase(passphrase: String?) -> ClientBuilder {
|
||||||
|
sessionPassphrasePassphraseCallsCount += 1
|
||||||
|
sessionPassphrasePassphraseReceivedPassphrase = passphrase
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.sessionPassphrasePassphraseReceivedInvocations.append(passphrase)
|
||||||
|
}
|
||||||
|
if let sessionPassphrasePassphraseClosure = sessionPassphrasePassphraseClosure {
|
||||||
|
return sessionPassphrasePassphraseClosure(passphrase)
|
||||||
|
} else {
|
||||||
|
return sessionPassphrasePassphraseReturnValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//MARK: - sessionPaths
|
//MARK: - sessionPaths
|
||||||
|
|
||||||
var sessionPathsDataPathCachePathUnderlyingCallsCount = 0
|
var sessionPathsDataPathCachePathUnderlyingCallsCount = 0
|
||||||
@@ -5778,6 +5966,77 @@ open class ClientBuilderSDKMock: MatrixRustSDK.ClientBuilder, @unchecked Sendabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - sessionPoolMaxSize
|
||||||
|
|
||||||
|
var sessionPoolMaxSizePoolMaxSizeUnderlyingCallsCount = 0
|
||||||
|
open var sessionPoolMaxSizePoolMaxSizeCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return sessionPoolMaxSizePoolMaxSizeUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = sessionPoolMaxSizePoolMaxSizeUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
sessionPoolMaxSizePoolMaxSizeUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
sessionPoolMaxSizePoolMaxSizeUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var sessionPoolMaxSizePoolMaxSizeCalled: Bool {
|
||||||
|
return sessionPoolMaxSizePoolMaxSizeCallsCount > 0
|
||||||
|
}
|
||||||
|
open var sessionPoolMaxSizePoolMaxSizeReceivedPoolMaxSize: UInt32?
|
||||||
|
open var sessionPoolMaxSizePoolMaxSizeReceivedInvocations: [UInt32?] = []
|
||||||
|
|
||||||
|
var sessionPoolMaxSizePoolMaxSizeUnderlyingReturnValue: ClientBuilder!
|
||||||
|
open var sessionPoolMaxSizePoolMaxSizeReturnValue: ClientBuilder! {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return sessionPoolMaxSizePoolMaxSizeUnderlyingReturnValue
|
||||||
|
} else {
|
||||||
|
var returnValue: ClientBuilder? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = sessionPoolMaxSizePoolMaxSizeUnderlyingReturnValue
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
sessionPoolMaxSizePoolMaxSizeUnderlyingReturnValue = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
sessionPoolMaxSizePoolMaxSizeUnderlyingReturnValue = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var sessionPoolMaxSizePoolMaxSizeClosure: ((UInt32?) -> ClientBuilder)?
|
||||||
|
|
||||||
|
open override func sessionPoolMaxSize(poolMaxSize: UInt32?) -> ClientBuilder {
|
||||||
|
sessionPoolMaxSizePoolMaxSizeCallsCount += 1
|
||||||
|
sessionPoolMaxSizePoolMaxSizeReceivedPoolMaxSize = poolMaxSize
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.sessionPoolMaxSizePoolMaxSizeReceivedInvocations.append(poolMaxSize)
|
||||||
|
}
|
||||||
|
if let sessionPoolMaxSizePoolMaxSizeClosure = sessionPoolMaxSizePoolMaxSizeClosure {
|
||||||
|
return sessionPoolMaxSizePoolMaxSizeClosure(poolMaxSize)
|
||||||
|
} else {
|
||||||
|
return sessionPoolMaxSizePoolMaxSizeReturnValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//MARK: - setSessionDelegate
|
//MARK: - setSessionDelegate
|
||||||
|
|
||||||
var setSessionDelegateSessionDelegateUnderlyingCallsCount = 0
|
var setSessionDelegateSessionDelegateUnderlyingCallsCount = 0
|
||||||
|
|||||||
@@ -52,6 +52,6 @@ struct AuthenticationClientBuilder: AuthenticationClientBuilderProtocol {
|
|||||||
eventCacheEnabled: appSettings.eventCacheEnabled)
|
eventCacheEnabled: appSettings.eventCacheEnabled)
|
||||||
.sessionPaths(dataPath: sessionDirectories.dataPath,
|
.sessionPaths(dataPath: sessionDirectories.dataPath,
|
||||||
cachePath: sessionDirectories.cachePath)
|
cachePath: sessionDirectories.cachePath)
|
||||||
.passphrase(passphrase: passphrase)
|
.sessionPassphrase(passphrase: passphrase)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -236,6 +236,7 @@ final class TimelineProxy: TimelineProxyProtocol {
|
|||||||
caption: caption,
|
caption: caption,
|
||||||
formattedCaption: nil, // Rust will build this from the caption's markdown.
|
formattedCaption: nil, // Rust will build this from the caption's markdown.
|
||||||
mentions: nil,
|
mentions: nil,
|
||||||
|
replyParams: nil,
|
||||||
useSendQueue: true),
|
useSendQueue: true),
|
||||||
audioInfo: audioInfo,
|
audioInfo: audioInfo,
|
||||||
progressWatcher: nil)
|
progressWatcher: nil)
|
||||||
@@ -263,6 +264,7 @@ final class TimelineProxy: TimelineProxyProtocol {
|
|||||||
caption: caption,
|
caption: caption,
|
||||||
formattedCaption: nil, // Rust will build this from the caption's markdown.
|
formattedCaption: nil, // Rust will build this from the caption's markdown.
|
||||||
mentions: nil,
|
mentions: nil,
|
||||||
|
replyParams: nil,
|
||||||
useSendQueue: true),
|
useSendQueue: true),
|
||||||
fileInfo: fileInfo,
|
fileInfo: fileInfo,
|
||||||
progressWatcher: nil)
|
progressWatcher: nil)
|
||||||
@@ -291,6 +293,7 @@ final class TimelineProxy: TimelineProxyProtocol {
|
|||||||
caption: caption,
|
caption: caption,
|
||||||
formattedCaption: nil, // Rust will build this from the caption's markdown.
|
formattedCaption: nil, // Rust will build this from the caption's markdown.
|
||||||
mentions: nil,
|
mentions: nil,
|
||||||
|
replyParams: nil,
|
||||||
useSendQueue: true),
|
useSendQueue: true),
|
||||||
thumbnailPath: thumbnailURL.path(percentEncoded: false),
|
thumbnailPath: thumbnailURL.path(percentEncoded: false),
|
||||||
imageInfo: imageInfo,
|
imageInfo: imageInfo,
|
||||||
@@ -338,6 +341,7 @@ final class TimelineProxy: TimelineProxyProtocol {
|
|||||||
caption: caption,
|
caption: caption,
|
||||||
formattedCaption: nil,
|
formattedCaption: nil,
|
||||||
mentions: nil,
|
mentions: nil,
|
||||||
|
replyParams: nil,
|
||||||
useSendQueue: true),
|
useSendQueue: true),
|
||||||
thumbnailPath: thumbnailURL.path(percentEncoded: false),
|
thumbnailPath: thumbnailURL.path(percentEncoded: false),
|
||||||
videoInfo: videoInfo,
|
videoInfo: videoInfo,
|
||||||
@@ -366,6 +370,7 @@ final class TimelineProxy: TimelineProxyProtocol {
|
|||||||
caption: nil,
|
caption: nil,
|
||||||
formattedCaption: nil,
|
formattedCaption: nil,
|
||||||
mentions: nil,
|
mentions: nil,
|
||||||
|
replyParams: nil,
|
||||||
useSendQueue: true),
|
useSendQueue: true),
|
||||||
audioInfo: audioInfo,
|
audioInfo: audioInfo,
|
||||||
waveform: waveform,
|
waveform: waveform,
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class UserSessionStore: UserSessionStoreProtocol {
|
|||||||
cachePath: credentials.restorationToken.sessionDirectories.cachePath)
|
cachePath: credentials.restorationToken.sessionDirectories.cachePath)
|
||||||
.username(username: credentials.userID)
|
.username(username: credentials.userID)
|
||||||
.homeserverUrl(url: homeserverURL)
|
.homeserverUrl(url: homeserverURL)
|
||||||
.passphrase(passphrase: credentials.restorationToken.passphrase)
|
.sessionPassphrase(passphrase: credentials.restorationToken.passphrase)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
let client = try await builder.build()
|
let client = try await builder.build()
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ final class NSEUserSession {
|
|||||||
cachePath: credentials.restorationToken.sessionDirectories.cachePath)
|
cachePath: credentials.restorationToken.sessionDirectories.cachePath)
|
||||||
.username(username: credentials.userID)
|
.username(username: credentials.userID)
|
||||||
.homeserverUrl(url: homeserverURL)
|
.homeserverUrl(url: homeserverURL)
|
||||||
.passphrase(passphrase: credentials.restorationToken.passphrase)
|
.sessionPassphrase(passphrase: credentials.restorationToken.passphrase)
|
||||||
|
|
||||||
baseClient = try await clientBuilder.build()
|
baseClient = try await clientBuilder.build()
|
||||||
delegateHandle = baseClient.setDelegate(delegate: ClientDelegateWrapper())
|
delegateHandle = baseClient.setDelegate(delegate: ClientDelegateWrapper())
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ packages:
|
|||||||
# Element/Matrix dependencies
|
# Element/Matrix dependencies
|
||||||
MatrixRustSDK:
|
MatrixRustSDK:
|
||||||
url: https://github.com/element-hq/matrix-rust-components-swift
|
url: https://github.com/element-hq/matrix-rust-components-swift
|
||||||
exactVersion: 25.03.31
|
exactVersion: 25.04.02
|
||||||
# path: ../matrix-rust-sdk
|
# path: ../matrix-rust-sdk
|
||||||
Compound:
|
Compound:
|
||||||
url: https://github.com/element-hq/compound-ios
|
url: https://github.com/element-hq/compound-ios
|
||||||
|
|||||||
Reference in New Issue
Block a user