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:
Mauro
2025-10-07 14:57:34 +02:00
committed by GitHub
parent d005243e31
commit bdc136ba8c
6 changed files with 77 additions and 8 deletions

View File

@@ -9428,7 +9428,7 @@
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
requirement = {
kind = exactVersion;
version = 25.10.02;
version = "25.10.07-2";
};
};
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {

View File

@@ -1,5 +1,4 @@
{
"originHash" : "123c89d756b94a4cfdf4ca86fa4278640fc96854ac223bcef68e5566b0c47018",
"pins" : [
{
"identity" : "compound-design-tokens",
@@ -150,8 +149,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/matrix-rust-components-swift",
"state" : {
"revision" : "bd2e8c25c5e179b272a0718ac6beca9dcb32f0a3",
"version" : "25.10.2"
"revision" : "8dd60f0967f638f2fd119a315a268c253e20ef52",
"version" : "25.10.7-2"
}
},
{
@@ -326,5 +325,5 @@
}
}
],
"version" : 3
"version" : 2
}

View File

@@ -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
open var getRoomNotificationSettingsRoomIdIsEncryptedIsOneToOneThrowableError: Error?

View File

@@ -135,7 +135,8 @@ private extension SpaceRoom {
via: [String] = []) {
self.init(roomId: id,
canonicalAlias: canonicalAlias,
name: name,
displayName: name,
rawName: name,
topic: topic,
avatarUrl: avatarURL?.absoluteString,
roomType: isSpace ? .space : .room,

View File

@@ -16,7 +16,7 @@ class SpaceRoomProxy: SpaceRoomProxyProtocol {
}
lazy var id = spaceRoom.roomId
var name: String? { spaceRoom.name }
var name: String? { spaceRoom.displayName }
var avatarURL: URL? { spaceRoom.avatarUrl.flatMap(URL.init) }
var isSpace: Bool { spaceRoom.roomType == .space }

View File

@@ -68,7 +68,7 @@ packages:
# Element/Matrix dependencies
MatrixRustSDK:
url: https://github.com/element-hq/matrix-rust-components-swift
exactVersion: 25.10.02
exactVersion: 25.10.07-2
# path: ../matrix-rust-sdk
Compound:
path: compound-ios