mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Update sdk to 25.10.07-2 (#4586)
* update sdk to 25.10.07 * update generated mocks for the SDK * update the sdk to build number 2 * fixing compile errors
This commit is contained in:
@@ -9428,7 +9428,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.10.02;
|
version = "25.10.07-2";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"originHash" : "123c89d756b94a4cfdf4ca86fa4278640fc96854ac223bcef68e5566b0c47018",
|
|
||||||
"pins" : [
|
"pins" : [
|
||||||
{
|
{
|
||||||
"identity" : "compound-design-tokens",
|
"identity" : "compound-design-tokens",
|
||||||
@@ -150,8 +149,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" : "bd2e8c25c5e179b272a0718ac6beca9dcb32f0a3",
|
"revision" : "8dd60f0967f638f2fd119a315a268c253e20ef52",
|
||||||
"version" : "25.10.2"
|
"version" : "25.10.7-2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -326,5 +325,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version" : 3
|
"version" : 2
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11069,6 +11069,75 @@ open class NotificationSettingsSDKMock: MatrixRustSDK.NotificationSettings, @unc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - getRawPushRules
|
||||||
|
|
||||||
|
open var getRawPushRulesThrowableError: Error?
|
||||||
|
var getRawPushRulesUnderlyingCallsCount = 0
|
||||||
|
open var getRawPushRulesCallsCount: Int {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return getRawPushRulesUnderlyingCallsCount
|
||||||
|
} else {
|
||||||
|
var returnValue: Int? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = getRawPushRulesUnderlyingCallsCount
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
getRawPushRulesUnderlyingCallsCount = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
getRawPushRulesUnderlyingCallsCount = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var getRawPushRulesCalled: Bool {
|
||||||
|
return getRawPushRulesCallsCount > 0
|
||||||
|
}
|
||||||
|
|
||||||
|
var getRawPushRulesUnderlyingReturnValue: String?
|
||||||
|
open var getRawPushRulesReturnValue: String? {
|
||||||
|
get {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
return getRawPushRulesUnderlyingReturnValue
|
||||||
|
} else {
|
||||||
|
var returnValue: String?? = nil
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
returnValue = getRawPushRulesUnderlyingReturnValue
|
||||||
|
}
|
||||||
|
|
||||||
|
return returnValue!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
if Thread.isMainThread {
|
||||||
|
getRawPushRulesUnderlyingReturnValue = newValue
|
||||||
|
} else {
|
||||||
|
DispatchQueue.main.sync {
|
||||||
|
getRawPushRulesUnderlyingReturnValue = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open var getRawPushRulesClosure: (() async throws -> String?)?
|
||||||
|
|
||||||
|
open override func getRawPushRules() async throws -> String? {
|
||||||
|
if let error = getRawPushRulesThrowableError {
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
getRawPushRulesCallsCount += 1
|
||||||
|
if let getRawPushRulesClosure = getRawPushRulesClosure {
|
||||||
|
return try await getRawPushRulesClosure()
|
||||||
|
} else {
|
||||||
|
return getRawPushRulesReturnValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//MARK: - getRoomNotificationSettings
|
//MARK: - getRoomNotificationSettings
|
||||||
|
|
||||||
open var getRoomNotificationSettingsRoomIdIsEncryptedIsOneToOneThrowableError: Error?
|
open var getRoomNotificationSettingsRoomIdIsEncryptedIsOneToOneThrowableError: Error?
|
||||||
|
|||||||
@@ -135,7 +135,8 @@ private extension SpaceRoom {
|
|||||||
via: [String] = []) {
|
via: [String] = []) {
|
||||||
self.init(roomId: id,
|
self.init(roomId: id,
|
||||||
canonicalAlias: canonicalAlias,
|
canonicalAlias: canonicalAlias,
|
||||||
name: name,
|
displayName: name,
|
||||||
|
rawName: name,
|
||||||
topic: topic,
|
topic: topic,
|
||||||
avatarUrl: avatarURL?.absoluteString,
|
avatarUrl: avatarURL?.absoluteString,
|
||||||
roomType: isSpace ? .space : .room,
|
roomType: isSpace ? .space : .room,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class SpaceRoomProxy: SpaceRoomProxyProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lazy var id = spaceRoom.roomId
|
lazy var id = spaceRoom.roomId
|
||||||
var name: String? { spaceRoom.name }
|
var name: String? { spaceRoom.displayName }
|
||||||
var avatarURL: URL? { spaceRoom.avatarUrl.flatMap(URL.init) }
|
var avatarURL: URL? { spaceRoom.avatarUrl.flatMap(URL.init) }
|
||||||
|
|
||||||
var isSpace: Bool { spaceRoom.roomType == .space }
|
var isSpace: Bool { spaceRoom.roomType == .space }
|
||||||
|
|||||||
+1
-1
@@ -68,7 +68,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.10.02
|
exactVersion: 25.10.07-2
|
||||||
# path: ../matrix-rust-sdk
|
# path: ../matrix-rust-sdk
|
||||||
Compound:
|
Compound:
|
||||||
path: compound-ios
|
path: compound-ios
|
||||||
|
|||||||
Reference in New Issue
Block a user