Skip to content

Commit d39b027

Browse files
committed
Bump to version 25.07.01 (matrix-rust-sdk/main 59c29801e505f4a2020abf7b9efdaf66f7c10d64)
1 parent 3023978 commit d39b027

File tree

2 files changed

+13
-151
lines changed

2 files changed

+13
-151
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 = "5aa1eeddd289af92b597a4debcae10ae51d9c972738b056bff4f7f574adc545a"
5-
let version = "25.06.25-2"
4+
let checksum = "dba8765e8b651801c1fedbfcd125e3e80f8ac3dc05bac2814dde84841c668a2f"
5+
let version = "25.07.01"
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: 11 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -14191,118 +14191,6 @@ public func FfiConverterTypeCreateRoomParameters_lower(_ value: CreateRoomParame
1419114191
}
1419214192

1419314193

14194-
/**
14195-
* Well-known settings specific to ElementCall
14196-
*/
14197-
public struct ElementCallWellKnown {
14198-
public var widgetUrl: String
14199-
14200-
// Default memberwise initializers are never public by default, so we
14201-
// declare one manually.
14202-
public init(widgetUrl: String) {
14203-
self.widgetUrl = widgetUrl
14204-
}
14205-
}
14206-
14207-
14208-
14209-
extension ElementCallWellKnown: Equatable, Hashable {
14210-
public static func ==(lhs: ElementCallWellKnown, rhs: ElementCallWellKnown) -> Bool {
14211-
if lhs.widgetUrl != rhs.widgetUrl {
14212-
return false
14213-
}
14214-
return true
14215-
}
14216-
14217-
public func hash(into hasher: inout Hasher) {
14218-
hasher.combine(widgetUrl)
14219-
}
14220-
}
14221-
14222-
14223-
public struct FfiConverterTypeElementCallWellKnown: FfiConverterRustBuffer {
14224-
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ElementCallWellKnown {
14225-
return
14226-
try ElementCallWellKnown(
14227-
widgetUrl: FfiConverterString.read(from: &buf)
14228-
)
14229-
}
14230-
14231-
public static func write(_ value: ElementCallWellKnown, into buf: inout [UInt8]) {
14232-
FfiConverterString.write(value.widgetUrl, into: &buf)
14233-
}
14234-
}
14235-
14236-
14237-
public func FfiConverterTypeElementCallWellKnown_lift(_ buf: RustBuffer) throws -> ElementCallWellKnown {
14238-
return try FfiConverterTypeElementCallWellKnown.lift(buf)
14239-
}
14240-
14241-
public func FfiConverterTypeElementCallWellKnown_lower(_ value: ElementCallWellKnown) -> RustBuffer {
14242-
return FfiConverterTypeElementCallWellKnown.lower(value)
14243-
}
14244-
14245-
14246-
/**
14247-
* Element specific well-known settings
14248-
*/
14249-
public struct ElementWellKnown {
14250-
public var call: ElementCallWellKnown?
14251-
public var registrationHelperUrl: String?
14252-
14253-
// Default memberwise initializers are never public by default, so we
14254-
// declare one manually.
14255-
public init(call: ElementCallWellKnown?, registrationHelperUrl: String?) {
14256-
self.call = call
14257-
self.registrationHelperUrl = registrationHelperUrl
14258-
}
14259-
}
14260-
14261-
14262-
14263-
extension ElementWellKnown: Equatable, Hashable {
14264-
public static func ==(lhs: ElementWellKnown, rhs: ElementWellKnown) -> Bool {
14265-
if lhs.call != rhs.call {
14266-
return false
14267-
}
14268-
if lhs.registrationHelperUrl != rhs.registrationHelperUrl {
14269-
return false
14270-
}
14271-
return true
14272-
}
14273-
14274-
public func hash(into hasher: inout Hasher) {
14275-
hasher.combine(call)
14276-
hasher.combine(registrationHelperUrl)
14277-
}
14278-
}
14279-
14280-
14281-
public struct FfiConverterTypeElementWellKnown: FfiConverterRustBuffer {
14282-
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ElementWellKnown {
14283-
return
14284-
try ElementWellKnown(
14285-
call: FfiConverterOptionTypeElementCallWellKnown.read(from: &buf),
14286-
registrationHelperUrl: FfiConverterOptionString.read(from: &buf)
14287-
)
14288-
}
14289-
14290-
public static func write(_ value: ElementWellKnown, into buf: inout [UInt8]) {
14291-
FfiConverterOptionTypeElementCallWellKnown.write(value.call, into: &buf)
14292-
FfiConverterOptionString.write(value.registrationHelperUrl, into: &buf)
14293-
}
14294-
}
14295-
14296-
14297-
public func FfiConverterTypeElementWellKnown_lift(_ buf: RustBuffer) throws -> ElementWellKnown {
14298-
return try FfiConverterTypeElementWellKnown.lift(buf)
14299-
}
14300-
14301-
public func FfiConverterTypeElementWellKnown_lower(_ value: ElementWellKnown) -> RustBuffer {
14302-
return FfiConverterTypeElementWellKnown.lower(value)
14303-
}
14304-
14305-
1430614194
public struct EmoteMessageContent {
1430714195
public var body: String
1430814196
public var formatted: FormattedBody?
@@ -16070,17 +15958,19 @@ public struct NotificationRoomInfo {
1607015958
public var displayName: String
1607115959
public var avatarUrl: String?
1607215960
public var canonicalAlias: String?
15961+
public var topic: String?
1607315962
public var joinRule: JoinRule?
1607415963
public var joinedMembersCount: UInt64
1607515964
public var isEncrypted: Bool?
1607615965
public var isDirect: Bool
1607715966

1607815967
// Default memberwise initializers are never public by default, so we
1607915968
// declare one manually.
16080-
public init(displayName: String, avatarUrl: String?, canonicalAlias: String?, joinRule: JoinRule?, joinedMembersCount: UInt64, isEncrypted: Bool?, isDirect: Bool) {
15969+
public init(displayName: String, avatarUrl: String?, canonicalAlias: String?, topic: String?, joinRule: JoinRule?, joinedMembersCount: UInt64, isEncrypted: Bool?, isDirect: Bool) {
1608115970
self.displayName = displayName
1608215971
self.avatarUrl = avatarUrl
1608315972
self.canonicalAlias = canonicalAlias
15973+
self.topic = topic
1608415974
self.joinRule = joinRule
1608515975
self.joinedMembersCount = joinedMembersCount
1608615976
self.isEncrypted = isEncrypted
@@ -16101,6 +15991,9 @@ extension NotificationRoomInfo: Equatable, Hashable {
1610115991
if lhs.canonicalAlias != rhs.canonicalAlias {
1610215992
return false
1610315993
}
15994+
if lhs.topic != rhs.topic {
15995+
return false
15996+
}
1610415997
if lhs.joinRule != rhs.joinRule {
1610515998
return false
1610615999
}
@@ -16120,6 +16013,7 @@ extension NotificationRoomInfo: Equatable, Hashable {
1612016013
hasher.combine(displayName)
1612116014
hasher.combine(avatarUrl)
1612216015
hasher.combine(canonicalAlias)
16016+
hasher.combine(topic)
1612316017
hasher.combine(joinRule)
1612416018
hasher.combine(joinedMembersCount)
1612516019
hasher.combine(isEncrypted)
@@ -16135,6 +16029,7 @@ public struct FfiConverterTypeNotificationRoomInfo: FfiConverterRustBuffer {
1613516029
displayName: FfiConverterString.read(from: &buf),
1613616030
avatarUrl: FfiConverterOptionString.read(from: &buf),
1613716031
canonicalAlias: FfiConverterOptionString.read(from: &buf),
16032+
topic: FfiConverterOptionString.read(from: &buf),
1613816033
joinRule: FfiConverterOptionTypeJoinRule.read(from: &buf),
1613916034
joinedMembersCount: FfiConverterUInt64.read(from: &buf),
1614016035
isEncrypted: FfiConverterOptionBool.read(from: &buf),
@@ -16146,6 +16041,7 @@ public struct FfiConverterTypeNotificationRoomInfo: FfiConverterRustBuffer {
1614616041
FfiConverterString.write(value.displayName, into: &buf)
1614716042
FfiConverterOptionString.write(value.avatarUrl, into: &buf)
1614816043
FfiConverterOptionString.write(value.canonicalAlias, into: &buf)
16044+
FfiConverterOptionString.write(value.topic, into: &buf)
1614916045
FfiConverterOptionTypeJoinRule.write(value.joinRule, into: &buf)
1615016046
FfiConverterUInt64.write(value.joinedMembersCount, into: &buf)
1615116047
FfiConverterOptionBool.write(value.isEncrypted, into: &buf)
@@ -34325,27 +34221,6 @@ fileprivate struct FfiConverterOptionTypeComposerDraft: FfiConverterRustBuffer {
3432534221
}
3432634222
}
3432734223

34328-
fileprivate struct FfiConverterOptionTypeElementCallWellKnown: FfiConverterRustBuffer {
34329-
typealias SwiftType = ElementCallWellKnown?
34330-
34331-
public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
34332-
guard let value = value else {
34333-
writeInt(&buf, Int8(0))
34334-
return
34335-
}
34336-
writeInt(&buf, Int8(1))
34337-
FfiConverterTypeElementCallWellKnown.write(value, into: &buf)
34338-
}
34339-
34340-
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
34341-
switch try readInt(&buf) as Int8 {
34342-
case 0: return nil
34343-
case 1: return try FfiConverterTypeElementCallWellKnown.read(from: &buf)
34344-
default: throw UniffiInternalError.unexpectedOptionalTag
34345-
}
34346-
}
34347-
}
34348-
3434934224
fileprivate struct FfiConverterOptionTypeEventTimelineItem: FfiConverterRustBuffer {
3435034225
typealias SwiftType = EventTimelineItem?
3435134226

@@ -36666,7 +36541,7 @@ public func isRoomAliasFormatValid(alias: String) -> Bool {
3666636541
* Log an event.
3666736542
*
3666836543
* The target should be something like a module path, and can be referenced in
36669-
* the filter string given to `setup_tracing`. `level` and `target` for a
36544+
* the filter string given to `init_platform`. `level` and `target` for a
3667036545
* callsite are fixed at the first `log_event` call for that callsite and can
3667136546
* not be changed afterwards, i.e. the level and target passed for second and
3667236547
* following `log_event`s with the same callsite will be ignored.
@@ -36686,16 +36561,6 @@ public func logEvent(file: String, line: UInt32?, level: LogLevel, target: Strin
3668636561
)
3668736562
}
3668836563
}
36689-
/**
36690-
* Helper function to parse a string into a ElementWellKnown struct
36691-
*/
36692-
public func makeElementWellKnown(string: String)throws -> ElementWellKnown {
36693-
return try FfiConverterTypeElementWellKnown.lift(try rustCallWithError(FfiConverterTypeClientError.lift) {
36694-
uniffi_matrix_sdk_ffi_fn_func_make_element_well_known(
36695-
FfiConverterString.lower(string),$0
36696-
)
36697-
})
36698-
}
3669936564
public func makeWidgetDriver(settings: WidgetSettings)throws -> WidgetDriverAndHandle {
3670036565
return try FfiConverterTypeWidgetDriverAndHandle.lift(try rustCallWithError(FfiConverterTypeParseError.lift) {
3670136566
uniffi_matrix_sdk_ffi_fn_func_make_widget_driver(
@@ -36863,10 +36728,7 @@ private var initializationResult: InitializationResult = {
3686336728
if (uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid() != 54845) {
3686436729
return InitializationResult.apiChecksumMismatch
3686536730
}
36866-
if (uniffi_matrix_sdk_ffi_checksum_func_log_event() != 62286) {
36867-
return InitializationResult.apiChecksumMismatch
36868-
}
36869-
if (uniffi_matrix_sdk_ffi_checksum_func_make_element_well_known() != 21379) {
36731+
if (uniffi_matrix_sdk_ffi_checksum_func_log_event() != 55646) {
3687036732
return InitializationResult.apiChecksumMismatch
3687136733
}
3687236734
if (uniffi_matrix_sdk_ffi_checksum_func_make_widget_driver() != 34206) {

0 commit comments

Comments
 (0)