Skip to content

Commit 2599119

Browse files
committed
Bump to v1.1.3 (matrix-rust-sdk 1cc11ae988977e29c5b52d96d51f17be8bd3d369)
1 parent 3cc7cbd commit 2599119

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let checksum = "6562dfb2ba4cf8f00ca4b41bf81568876e5881f988eeb58b9f201f5df95a0cde"
7-
let version = "v1.1.2"
6+
let checksum = "93379aee7cf5f663db343e6e67e504908102d421baa4dc22329e85d0de1b20b5"
7+
let version = "v1.1.3"
88
let url = "https://github.com/matrix-org/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
99

1010
let package = Package(

Sources/MatrixRustSDK/matrix_sdk_ffi.swift

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7029,19 +7029,21 @@ public func FfiConverterTypeNotificationSenderInfo_lower(_ value: NotificationSe
70297029

70307030

70317031
public struct OidcConfiguration {
7032-
public var clientName: String
7032+
public var clientName: String?
70337033
public var redirectUri: String
7034-
public var clientUri: String
7035-
public var tosUri: String
7036-
public var policyUri: String
7034+
public var clientUri: String?
7035+
public var logoUri: String?
7036+
public var tosUri: String?
7037+
public var policyUri: String?
70377038
public var staticRegistrations: [String: String]
70387039

70397040
// Default memberwise initializers are never public by default, so we
70407041
// declare one manually.
7041-
public init(clientName: String, redirectUri: String, clientUri: String, tosUri: String, policyUri: String, staticRegistrations: [String: String]) {
7042+
public init(clientName: String?, redirectUri: String, clientUri: String?, logoUri: String?, tosUri: String?, policyUri: String?, staticRegistrations: [String: String]) {
70427043
self.clientName = clientName
70437044
self.redirectUri = redirectUri
70447045
self.clientUri = clientUri
7046+
self.logoUri = logoUri
70457047
self.tosUri = tosUri
70467048
self.policyUri = policyUri
70477049
self.staticRegistrations = staticRegistrations
@@ -7060,6 +7062,9 @@ extension OidcConfiguration: Equatable, Hashable {
70607062
if lhs.clientUri != rhs.clientUri {
70617063
return false
70627064
}
7065+
if lhs.logoUri != rhs.logoUri {
7066+
return false
7067+
}
70637068
if lhs.tosUri != rhs.tosUri {
70647069
return false
70657070
}
@@ -7076,6 +7081,7 @@ extension OidcConfiguration: Equatable, Hashable {
70767081
hasher.combine(clientName)
70777082
hasher.combine(redirectUri)
70787083
hasher.combine(clientUri)
7084+
hasher.combine(logoUri)
70797085
hasher.combine(tosUri)
70807086
hasher.combine(policyUri)
70817087
hasher.combine(staticRegistrations)
@@ -7086,21 +7092,23 @@ extension OidcConfiguration: Equatable, Hashable {
70867092
public struct FfiConverterTypeOidcConfiguration: FfiConverterRustBuffer {
70877093
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> OidcConfiguration {
70887094
return try OidcConfiguration(
7089-
clientName: FfiConverterString.read(from: &buf),
7095+
clientName: FfiConverterOptionString.read(from: &buf),
70907096
redirectUri: FfiConverterString.read(from: &buf),
7091-
clientUri: FfiConverterString.read(from: &buf),
7092-
tosUri: FfiConverterString.read(from: &buf),
7093-
policyUri: FfiConverterString.read(from: &buf),
7097+
clientUri: FfiConverterOptionString.read(from: &buf),
7098+
logoUri: FfiConverterOptionString.read(from: &buf),
7099+
tosUri: FfiConverterOptionString.read(from: &buf),
7100+
policyUri: FfiConverterOptionString.read(from: &buf),
70947101
staticRegistrations: FfiConverterDictionaryStringString.read(from: &buf)
70957102
)
70967103
}
70977104

70987105
public static func write(_ value: OidcConfiguration, into buf: inout [UInt8]) {
7099-
FfiConverterString.write(value.clientName, into: &buf)
7106+
FfiConverterOptionString.write(value.clientName, into: &buf)
71007107
FfiConverterString.write(value.redirectUri, into: &buf)
7101-
FfiConverterString.write(value.clientUri, into: &buf)
7102-
FfiConverterString.write(value.tosUri, into: &buf)
7103-
FfiConverterString.write(value.policyUri, into: &buf)
7108+
FfiConverterOptionString.write(value.clientUri, into: &buf)
7109+
FfiConverterOptionString.write(value.logoUri, into: &buf)
7110+
FfiConverterOptionString.write(value.tosUri, into: &buf)
7111+
FfiConverterOptionString.write(value.policyUri, into: &buf)
71047112
FfiConverterDictionaryStringString.write(value.staticRegistrations, into: &buf)
71057113
}
71067114
}
@@ -7559,10 +7567,11 @@ public struct RoomInfo {
75597567
public var joinedMembersCount: UInt64
75607568
public var highlightCount: UInt64
75617569
public var notificationCount: UInt64
7570+
public var notificationMode: RoomNotificationMode?
75627571

75637572
// Default memberwise initializers are never public by default, so we
75647573
// declare one manually.
7565-
public init(id: String, name: String?, topic: String?, avatarUrl: String?, isDirect: Bool, isPublic: Bool, isSpace: Bool, isTombstoned: Bool, canonicalAlias: String?, alternativeAliases: [String], membership: Membership, latestEvent: EventTimelineItem?, inviter: RoomMember?, activeMembersCount: UInt64, invitedMembersCount: UInt64, joinedMembersCount: UInt64, highlightCount: UInt64, notificationCount: UInt64) {
7574+
public init(id: String, name: String?, topic: String?, avatarUrl: String?, isDirect: Bool, isPublic: Bool, isSpace: Bool, isTombstoned: Bool, canonicalAlias: String?, alternativeAliases: [String], membership: Membership, latestEvent: EventTimelineItem?, inviter: RoomMember?, activeMembersCount: UInt64, invitedMembersCount: UInt64, joinedMembersCount: UInt64, highlightCount: UInt64, notificationCount: UInt64, notificationMode: RoomNotificationMode?) {
75667575
self.id = id
75677576
self.name = name
75687577
self.topic = topic
@@ -7581,6 +7590,7 @@ public struct RoomInfo {
75817590
self.joinedMembersCount = joinedMembersCount
75827591
self.highlightCount = highlightCount
75837592
self.notificationCount = notificationCount
7593+
self.notificationMode = notificationMode
75847594
}
75857595
}
75867596

@@ -7606,7 +7616,8 @@ public struct FfiConverterTypeRoomInfo: FfiConverterRustBuffer {
76067616
invitedMembersCount: FfiConverterUInt64.read(from: &buf),
76077617
joinedMembersCount: FfiConverterUInt64.read(from: &buf),
76087618
highlightCount: FfiConverterUInt64.read(from: &buf),
7609-
notificationCount: FfiConverterUInt64.read(from: &buf)
7619+
notificationCount: FfiConverterUInt64.read(from: &buf),
7620+
notificationMode: FfiConverterOptionTypeRoomNotificationMode.read(from: &buf)
76107621
)
76117622
}
76127623

@@ -7629,6 +7640,7 @@ public struct FfiConverterTypeRoomInfo: FfiConverterRustBuffer {
76297640
FfiConverterUInt64.write(value.joinedMembersCount, into: &buf)
76307641
FfiConverterUInt64.write(value.highlightCount, into: &buf)
76317642
FfiConverterUInt64.write(value.notificationCount, into: &buf)
7643+
FfiConverterOptionTypeRoomNotificationMode.write(value.notificationMode, into: &buf)
76327644
}
76337645
}
76347646

0 commit comments

Comments
 (0)