Skip to content

Commit 76cb7b6

Browse files
committed
Bump to version 25.05.23 (matrix-rust-sdk/main 6d5ad4eddc37317078f590fa0cc9fc31bce21a93)
1 parent ce4a5f2 commit 76cb7b6

File tree

2 files changed

+46
-6
lines changed

2 files changed

+46
-6
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// swift-tools-version:5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
import PackageDescription
4-
let checksum = "d8c90fc361d62beede443149b3e2a0c1c92c5efc23a50f05fc73dd10ad82adf5"
5-
let version = "25.05.21"
4+
let checksum = "c6a18fcbd803804cfcd490004b748643d08c69abcefb43dafbaa647f5a4deb77"
5+
let version = "25.05.23"
66
let url = "https://github.com/element-hq/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
77
let package = Package(
88
name: "MatrixRustSDK",

Sources/MatrixRustSDK/matrix_sdk_ffi.swift

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19089,6 +19089,10 @@ public struct TracingConfiguration {
1908919089
* If set, configures rotated log files where to write additional logs.
1909019090
*/
1909119091
public var writeToFiles: TracingFileConfiguration?
19092+
/**
19093+
* If set, the Sentry DSN to use for error reporting.
19094+
*/
19095+
public var sentryDsn: String?
1909219096

1909319097
// Default memberwise initializers are never public by default, so we
1909419098
// declare one manually.
@@ -19111,12 +19115,16 @@ public struct TracingConfiguration {
1911119115
*/writeToStdoutOrSystem: Bool,
1911219116
/**
1911319117
* If set, configures rotated log files where to write additional logs.
19114-
*/writeToFiles: TracingFileConfiguration?) {
19118+
*/writeToFiles: TracingFileConfiguration?,
19119+
/**
19120+
* If set, the Sentry DSN to use for error reporting.
19121+
*/sentryDsn: String?) {
1911519122
self.logLevel = logLevel
1911619123
self.traceLogPacks = traceLogPacks
1911719124
self.extraTargets = extraTargets
1911819125
self.writeToStdoutOrSystem = writeToStdoutOrSystem
1911919126
self.writeToFiles = writeToFiles
19127+
self.sentryDsn = sentryDsn
1912019128
}
1912119129
}
1912219130

@@ -19139,6 +19147,9 @@ extension TracingConfiguration: Equatable, Hashable {
1913919147
if lhs.writeToFiles != rhs.writeToFiles {
1914019148
return false
1914119149
}
19150+
if lhs.sentryDsn != rhs.sentryDsn {
19151+
return false
19152+
}
1914219153
return true
1914319154
}
1914419155

@@ -19148,6 +19159,7 @@ extension TracingConfiguration: Equatable, Hashable {
1914819159
hasher.combine(extraTargets)
1914919160
hasher.combine(writeToStdoutOrSystem)
1915019161
hasher.combine(writeToFiles)
19162+
hasher.combine(sentryDsn)
1915119163
}
1915219164
}
1915319165

@@ -19160,7 +19172,8 @@ public struct FfiConverterTypeTracingConfiguration: FfiConverterRustBuffer {
1916019172
traceLogPacks: FfiConverterSequenceTypeTraceLogPacks.read(from: &buf),
1916119173
extraTargets: FfiConverterSequenceString.read(from: &buf),
1916219174
writeToStdoutOrSystem: FfiConverterBool.read(from: &buf),
19163-
writeToFiles: FfiConverterOptionTypeTracingFileConfiguration.read(from: &buf)
19175+
writeToFiles: FfiConverterOptionTypeTracingFileConfiguration.read(from: &buf),
19176+
sentryDsn: FfiConverterOptionString.read(from: &buf)
1916419177
)
1916519178
}
1916619179

@@ -19170,6 +19183,7 @@ public struct FfiConverterTypeTracingConfiguration: FfiConverterRustBuffer {
1917019183
FfiConverterSequenceString.write(value.extraTargets, into: &buf)
1917119184
FfiConverterBool.write(value.writeToStdoutOrSystem, into: &buf)
1917219185
FfiConverterOptionTypeTracingFileConfiguration.write(value.writeToFiles, into: &buf)
19186+
FfiConverterOptionString.write(value.sentryDsn, into: &buf)
1917319187
}
1917419188
}
1917519189

@@ -30734,6 +30748,11 @@ public enum WidgetEventFilter {
3073430748
*/
3073530749
case stateWithTypeAndStateKey(eventType: String, stateKey: String
3073630750
)
30751+
/**
30752+
* Matches to-device events with the given `event_type`.
30753+
*/
30754+
case toDevice(eventType: String
30755+
)
3073730756
}
3073830757

3073930758

@@ -30756,6 +30775,9 @@ public struct FfiConverterTypeWidgetEventFilter: FfiConverterRustBuffer {
3075630775
case 4: return .stateWithTypeAndStateKey(eventType: try FfiConverterString.read(from: &buf), stateKey: try FfiConverterString.read(from: &buf)
3075730776
)
3075830777

30778+
case 5: return .toDevice(eventType: try FfiConverterString.read(from: &buf)
30779+
)
30780+
3075930781
default: throw UniffiInternalError.unexpectedEnumCase
3076030782
}
3076130783
}
@@ -30784,6 +30806,11 @@ public struct FfiConverterTypeWidgetEventFilter: FfiConverterRustBuffer {
3078430806
FfiConverterString.write(eventType, into: &buf)
3078530807
FfiConverterString.write(stateKey, into: &buf)
3078630808

30809+
30810+
case let .toDevice(eventType):
30811+
writeInt(&buf, Int32(5))
30812+
FfiConverterString.write(eventType, into: &buf)
30813+
3078730814
}
3078830815
}
3078930816
}
@@ -36123,6 +36150,16 @@ public func createCaptionEdit(caption: String?, formattedCaption: FormattedBody?
3612336150
)
3612436151
})
3612536152
}
36153+
/**
36154+
* Set the global enablement level for the Sentry layer (after the logs have
36155+
* been set up).
36156+
*/
36157+
public func enableSentryLogging(enabled: Bool) {try! rustCall() {
36158+
uniffi_matrix_sdk_ffi_fn_func_enable_sentry_logging(
36159+
FfiConverterBool.lower(enabled),$0
36160+
)
36161+
}
36162+
}
3612636163
public func genTransactionId() -> String {
3612736164
return try! FfiConverterString.lift(try! rustCall() {
3612836165
uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id($0
@@ -36183,7 +36220,7 @@ public func getElementCallRequiredPermissions(ownUserId: String, ownDeviceId: St
3618336220
* the NSE process on iOS). Otherwise, this can remain false, in which case a
3618436221
* multithreaded tokio runtime will be set up.
3618536222
*/
36186-
public func initPlatform(config: TracingConfiguration, useLightweightTokioRuntime: Bool) {try! rustCall() {
36223+
public func initPlatform(config: TracingConfiguration, useLightweightTokioRuntime: Bool)throws {try rustCallWithError(FfiConverterTypeClientError.lift) {
3618736224
uniffi_matrix_sdk_ffi_fn_func_init_platform(
3618836225
FfiConverterTypeTracingConfiguration.lower(config),
3618936226
FfiConverterBool.lower(useLightweightTokioRuntime),$0
@@ -36387,6 +36424,9 @@ private var initializationResult: InitializationResult = {
3638736424
if (uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit() != 33992) {
3638836425
return InitializationResult.apiChecksumMismatch
3638936426
}
36427+
if (uniffi_matrix_sdk_ffi_checksum_func_enable_sentry_logging() != 53125) {
36428+
return InitializationResult.apiChecksumMismatch
36429+
}
3639036430
if (uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id() != 15808) {
3639136431
return InitializationResult.apiChecksumMismatch
3639236432
}
@@ -36396,7 +36436,7 @@ private var initializationResult: InitializationResult = {
3639636436
if (uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions() != 30181) {
3639736437
return InitializationResult.apiChecksumMismatch
3639836438
}
36399-
if (uniffi_matrix_sdk_ffi_checksum_func_init_platform() != 35062) {
36439+
if (uniffi_matrix_sdk_ffi_checksum_func_init_platform() != 11113) {
3640036440
return InitializationResult.apiChecksumMismatch
3640136441
}
3640236442
if (uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid() != 54845) {

0 commit comments

Comments
 (0)