mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-25 11:14:01 +00:00
Upgrade Element Call to the 0.28.1 RC 2 (inc an SDK update). (#6447)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
// Generated using Sourcery 2.3.0 — https://github.com/krzysztofzablocki/Sourcery
|
// Generated using Sourcery 2.4.1 — https://github.com/krzysztofzablocki/Sourcery
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
// swiftlint:disable all
|
// swiftlint:disable all
|
||||||
@@ -2656,6 +2656,49 @@ open class ClientSDKMock: MatrixRustSDK.Client, @unchecked Sendable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - observeTotalUnreadNotifications
|
||||||
|
|
||||||
|
private let observeTotalUnreadNotificationsListenerMinIntervalCallsCountLock = NSLock()
|
||||||
|
private var observeTotalUnreadNotificationsListenerMinIntervalUnderlyingCallsCount = 0
|
||||||
|
open var observeTotalUnreadNotificationsListenerMinIntervalCallsCount: Int {
|
||||||
|
get { observeTotalUnreadNotificationsListenerMinIntervalCallsCountLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingCallsCount } }
|
||||||
|
set { observeTotalUnreadNotificationsListenerMinIntervalCallsCountLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingCallsCount = newValue } }
|
||||||
|
}
|
||||||
|
open var observeTotalUnreadNotificationsListenerMinIntervalCalled: Bool {
|
||||||
|
return observeTotalUnreadNotificationsListenerMinIntervalCallsCount > 0
|
||||||
|
}
|
||||||
|
private let observeTotalUnreadNotificationsListenerMinIntervalReceivedArgumentsLock = NSLock()
|
||||||
|
private var observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReceivedArguments: (listener: TotalUnreadNotificationsListener, minInterval: TimeInterval)?
|
||||||
|
open var observeTotalUnreadNotificationsListenerMinIntervalReceivedArguments: (listener: TotalUnreadNotificationsListener, minInterval: TimeInterval)? {
|
||||||
|
get { observeTotalUnreadNotificationsListenerMinIntervalReceivedArgumentsLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReceivedArguments } }
|
||||||
|
set { observeTotalUnreadNotificationsListenerMinIntervalReceivedArgumentsLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReceivedArguments = newValue } }
|
||||||
|
}
|
||||||
|
private let observeTotalUnreadNotificationsListenerMinIntervalReceivedInvocationsLock = NSLock()
|
||||||
|
private var observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReceivedInvocations: [(listener: TotalUnreadNotificationsListener, minInterval: TimeInterval)] = []
|
||||||
|
open var observeTotalUnreadNotificationsListenerMinIntervalReceivedInvocations: [(listener: TotalUnreadNotificationsListener, minInterval: TimeInterval)] {
|
||||||
|
get { observeTotalUnreadNotificationsListenerMinIntervalReceivedInvocationsLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReceivedInvocations } }
|
||||||
|
set { observeTotalUnreadNotificationsListenerMinIntervalReceivedInvocationsLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReceivedInvocations = newValue } }
|
||||||
|
}
|
||||||
|
|
||||||
|
private let observeTotalUnreadNotificationsListenerMinIntervalReturnValueLock = NSLock()
|
||||||
|
open var observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReturnValue: TaskHandle!
|
||||||
|
open var observeTotalUnreadNotificationsListenerMinIntervalReturnValue: TaskHandle! {
|
||||||
|
get { observeTotalUnreadNotificationsListenerMinIntervalReturnValueLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReturnValue } }
|
||||||
|
set { observeTotalUnreadNotificationsListenerMinIntervalReturnValueLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReturnValue = newValue } }
|
||||||
|
}
|
||||||
|
open var observeTotalUnreadNotificationsListenerMinIntervalClosure: ((TotalUnreadNotificationsListener, TimeInterval) -> TaskHandle)?
|
||||||
|
|
||||||
|
open override func observeTotalUnreadNotifications(listener: TotalUnreadNotificationsListener, minInterval: TimeInterval) -> TaskHandle {
|
||||||
|
observeTotalUnreadNotificationsListenerMinIntervalCallsCountLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingCallsCount += 1 }
|
||||||
|
observeTotalUnreadNotificationsListenerMinIntervalReceivedArguments = (listener: listener, minInterval: minInterval)
|
||||||
|
observeTotalUnreadNotificationsListenerMinIntervalReceivedInvocationsLock.withLock { observeTotalUnreadNotificationsListenerMinIntervalUnderlyingReceivedInvocations.append((listener: listener, minInterval: minInterval)) }
|
||||||
|
if let observeTotalUnreadNotificationsListenerMinIntervalClosure = observeTotalUnreadNotificationsListenerMinIntervalClosure {
|
||||||
|
return observeTotalUnreadNotificationsListenerMinIntervalClosure(listener, minInterval)
|
||||||
|
} else {
|
||||||
|
return observeTotalUnreadNotificationsListenerMinIntervalReturnValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//MARK: - optimizeStores
|
//MARK: - optimizeStores
|
||||||
|
|
||||||
open var optimizeStoresThrowableError: Error?
|
open var optimizeStoresThrowableError: Error?
|
||||||
|
|||||||
@@ -11201,7 +11201,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 = 26.10.27;
|
version = "26.10.30-2";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
||||||
@@ -11233,7 +11233,7 @@
|
|||||||
repositoryURL = "https://github.com/element-hq/element-call-swift";
|
repositoryURL = "https://github.com/element-hq/element-call-swift";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = exactVersion;
|
kind = exactVersion;
|
||||||
version = "0.28.1-rc.1";
|
version = "0.28.1-rc.2";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
821C67C9A7F8CC3FD41B28B4 /* XCRemoteSwiftPackageReference "emojibase-bindings" */ = {
|
821C67C9A7F8CC3FD41B28B4 /* XCRemoteSwiftPackageReference "emojibase-bindings" */ = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"originHash" : "1964864908944417b4a35a1c63d86d9c5801ed33b9ccea55fb0e6aa645bdc917",
|
"originHash" : "f99db7401bc7af2ca673ef115aba55ebf7c2a2853096963e2b6b0899b7b70542",
|
||||||
"pins" : [
|
"pins" : [
|
||||||
{
|
{
|
||||||
"identity" : "compound-design-tokens",
|
"identity" : "compound-design-tokens",
|
||||||
@@ -69,8 +69,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/element-hq/element-call-swift",
|
"location" : "https://github.com/element-hq/element-call-swift",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "df2326dffddaa5e6b23cb158a8d899dd1d0e8222",
|
"revision" : "c1bf64172254a3059bb4ec5225c6eb829bf698a3",
|
||||||
"version" : "0.28.1-rc.1"
|
"version" : "0.28.1-rc.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -176,8 +176,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" : "aaed1190a928db9085e8c2e58a7b1c109128b922",
|
"revision" : "f5fa5ad0faed200af6dbcb2ddc61dd115e82ba06",
|
||||||
"version" : "26.10.27"
|
"version" : "26.10.30-2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ nonisolated extension EventTimelineItem {
|
|||||||
localSendState: nil,
|
localSendState: nil,
|
||||||
editSendState: nil,
|
editSendState: nil,
|
||||||
redactionSendState: nil,
|
redactionSendState: nil,
|
||||||
|
redactionReason: nil,
|
||||||
localCreatedAt: nil,
|
localCreatedAt: nil,
|
||||||
readReceipts: [:],
|
readReceipts: [:],
|
||||||
origin: nil,
|
origin: nil,
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ nonisolated enum SDKMappings {
|
|||||||
static func transportsJSON(_ transports: [RtcTransport]) -> String {
|
static func transportsJSON(_ transports: [RtcTransport]) -> String {
|
||||||
let objects: [[String: Any]] = transports.map { transport in
|
let objects: [[String: Any]] = transports.map { transport in
|
||||||
switch transport {
|
switch transport {
|
||||||
case .liveKit(let serviceURL):
|
case .liveKit(_, let serviceURL):
|
||||||
return ["type": "livekit", "livekit_service_url": serviceURL]
|
return ["type": "livekit", "livekit_service_url": serviceURL]
|
||||||
case .custom(let type, let data):
|
case .custom(let type, let data):
|
||||||
var fields = jsonObject(data) ?? [:]
|
var fields = jsonObject(data) ?? [:]
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ struct SDKMappingsTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
func transportsAreRebuiltAsTheMSC4143Array() throws {
|
func transportsAreRebuiltAsTheMSC4143Array() throws {
|
||||||
let json = SDKMappings.transportsJSON([.liveKit(serviceUrl: "https://sfu.example.org"),
|
let json = SDKMappings.transportsJSON([.liveKit(url: nil, serviceUrl: "https://sfu.example.org"),
|
||||||
.custom(transportType: "other", data: #"{"url":"https://other.example.org"}"#)])
|
.custom(transportType: "other", data: #"{"url":"https://other.example.org"}"#)])
|
||||||
|
|
||||||
let array = try #require(JSONSerialization.jsonObject(with: Data(json.utf8)) as? [[String: String]])
|
let array = try #require(JSONSerialization.jsonObject(with: Data(json.utf8)) as? [[String: String]])
|
||||||
|
|||||||
+2
-2
@@ -75,7 +75,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: 26.10.27
|
exactVersion: 26.10.30-2
|
||||||
# path: ../matrix-rust-sdk
|
# path: ../matrix-rust-sdk
|
||||||
Compound:
|
Compound:
|
||||||
path: compound-ios
|
path: compound-ios
|
||||||
@@ -87,7 +87,7 @@ packages:
|
|||||||
# path: ../matrix-analytics-events
|
# path: ../matrix-analytics-events
|
||||||
EmbeddedElementCall:
|
EmbeddedElementCall:
|
||||||
url: https://github.com/element-hq/element-call-swift # WebView implementation
|
url: https://github.com/element-hq/element-call-swift # WebView implementation
|
||||||
exactVersion: 0.28.1-rc.1
|
exactVersion: 0.28.1-rc.2
|
||||||
ElementCall:
|
ElementCall:
|
||||||
url: https://github.com/element-hq/element-call-ios # Native implementation
|
url: https://github.com/element-hq/element-call-ios # Native implementation
|
||||||
exactVersion: 0.1.0-rc.13
|
exactVersion: 0.1.0-rc.13
|
||||||
|
|||||||
Reference in New Issue
Block a user