Bump the RustSDK to v25.05.26 and handle breaking changes

- the new sentry integration will be handled in #4145
This commit is contained in:
Stefan Ceriu
2025-05-26 09:12:35 +03:00
committed by Stefan Ceriu
parent a7c4a32285
commit ae42540ec0
5 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -8695,7 +8695,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.05.21; version = 25.05.26;
}; };
}; };
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" : "ce4a5f25ada21246d62e4b54c26fb1414432fb77", "revision" : "966e64d8145b857a4dd586c735024a7762efe603",
"version" : "25.5.21" "version" : "25.5.26"
} }
}, },
{ {
@@ -27,25 +27,25 @@ enum Target: String {
traceLogPacks: traceLogPacks, traceLogPacks: traceLogPacks,
currentTarget: rawValue, currentTarget: rawValue,
filePrefix: nil) filePrefix: nil)
initPlatform(config: tracingConfiguration, useLightweightTokioRuntime: false) try? initPlatform(config: tracingConfiguration, useLightweightTokioRuntime: false)
case .nse: case .nse:
let tracingConfiguration = Tracing.buildConfiguration(logLevel: logLevel, let tracingConfiguration = Tracing.buildConfiguration(logLevel: logLevel,
traceLogPacks: traceLogPacks, traceLogPacks: traceLogPacks,
currentTarget: rawValue, currentTarget: rawValue,
filePrefix: rawValue) filePrefix: rawValue)
initPlatform(config: tracingConfiguration, useLightweightTokioRuntime: true) try? initPlatform(config: tracingConfiguration, useLightweightTokioRuntime: true)
case .shareExtension: case .shareExtension:
let tracingConfiguration = Tracing.buildConfiguration(logLevel: logLevel, let tracingConfiguration = Tracing.buildConfiguration(logLevel: logLevel,
traceLogPacks: traceLogPacks, traceLogPacks: traceLogPacks,
currentTarget: rawValue, currentTarget: rawValue,
filePrefix: rawValue) filePrefix: rawValue)
initPlatform(config: tracingConfiguration, useLightweightTokioRuntime: true) try? initPlatform(config: tracingConfiguration, useLightweightTokioRuntime: true)
case .tests: case .tests:
let tracingConfiguration = Tracing.buildConfiguration(logLevel: logLevel, let tracingConfiguration = Tracing.buildConfiguration(logLevel: logLevel,
traceLogPacks: traceLogPacks, traceLogPacks: traceLogPacks,
currentTarget: rawValue, currentTarget: rawValue,
filePrefix: rawValue) filePrefix: rawValue)
initPlatform(config: tracingConfiguration, useLightweightTokioRuntime: false) try? initPlatform(config: tracingConfiguration, useLightweightTokioRuntime: false)
} }
MXLog.configure(currentTarget: rawValue) MXLog.configure(currentTarget: rawValue)
+2 -1
View File
@@ -45,7 +45,8 @@ enum Tracing {
writeToFiles: .init(path: logsDirectory.path(percentEncoded: false), writeToFiles: .init(path: logsDirectory.path(percentEncoded: false),
filePrefix: fileName, filePrefix: fileName,
fileSuffix: fileExtension, fileSuffix: fileExtension,
maxFiles: maxFiles)) maxFiles: maxFiles),
sentryDsn: nil)
} }
/// A list of all log file URLs, sorted chronologically. This is only public for testing purposes, within /// A list of all log file URLs, sorted chronologically. This is only public for testing purposes, within
+1 -1
View File
@@ -65,7 +65,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.05.21 exactVersion: 25.05.26
# 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