Skip to content

Commit 8a5813a

Browse files
committed
Bump to v1.1.39 (matrix-rust-sdk/main 74931768e59d610588e9916289193aadffadad47)
1 parent 691d8b0 commit 8a5813a

File tree

3 files changed

+86
-279
lines changed

3 files changed

+86
-279
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 = "5102270eafbac7cc12bf8b568992aabe729284528315455259e44a523d57418b"
7-
let version = "v1.1.38"
6+
let checksum = "2e6dd288006502cdf39c96896c090e6b118bd15449b2e701b7fd7b8e4ebca713"
7+
let version = "v1.1.39"
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_base.swift

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -297,27 +297,6 @@ private func uniffiCheckCallStatus(
297297
// Public interface members begin here.
298298

299299

300-
fileprivate struct FfiConverterBool : FfiConverter {
301-
typealias FfiType = Int8
302-
typealias SwiftType = Bool
303-
304-
public static func lift(_ value: Int8) throws -> Bool {
305-
return value != 0
306-
}
307-
308-
public static func lower(_ value: Bool) -> Int8 {
309-
return value ? 1 : 0
310-
}
311-
312-
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> Bool {
313-
return try lift(readInt(&buf))
314-
}
315-
316-
public static func write(_ value: Bool, into buf: inout [UInt8]) {
317-
writeInt(&buf, lower(value))
318-
}
319-
}
320-
321300
fileprivate struct FfiConverterString: FfiConverter {
322301
typealias SwiftType = String
323302
typealias FfiType = RustBuffer
@@ -356,79 +335,6 @@ fileprivate struct FfiConverterString: FfiConverter {
356335
}
357336
}
358337

359-
360-
/**
361-
* Holds information computed from the room account data `m.tag` events.
362-
*/
363-
public struct RoomNotableTags {
364-
/**
365-
* Whether or not the room is marked as favorite.
366-
*/
367-
public var isFavorite: Bool
368-
/**
369-
* Whether or not the room is marked as low priority.
370-
*/
371-
public var isLowPriority: Bool
372-
373-
// Default memberwise initializers are never public by default, so we
374-
// declare one manually.
375-
public init(
376-
/**
377-
* Whether or not the room is marked as favorite.
378-
*/
379-
isFavorite: Bool,
380-
/**
381-
* Whether or not the room is marked as low priority.
382-
*/
383-
isLowPriority: Bool) {
384-
self.isFavorite = isFavorite
385-
self.isLowPriority = isLowPriority
386-
}
387-
}
388-
389-
390-
extension RoomNotableTags: Equatable, Hashable {
391-
public static func ==(lhs: RoomNotableTags, rhs: RoomNotableTags) -> Bool {
392-
if lhs.isFavorite != rhs.isFavorite {
393-
return false
394-
}
395-
if lhs.isLowPriority != rhs.isLowPriority {
396-
return false
397-
}
398-
return true
399-
}
400-
401-
public func hash(into hasher: inout Hasher) {
402-
hasher.combine(isFavorite)
403-
hasher.combine(isLowPriority)
404-
}
405-
}
406-
407-
408-
public struct FfiConverterTypeRoomNotableTags: FfiConverterRustBuffer {
409-
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> RoomNotableTags {
410-
return
411-
try RoomNotableTags(
412-
isFavorite: FfiConverterBool.read(from: &buf),
413-
isLowPriority: FfiConverterBool.read(from: &buf)
414-
)
415-
}
416-
417-
public static func write(_ value: RoomNotableTags, into buf: inout [UInt8]) {
418-
FfiConverterBool.write(value.isFavorite, into: &buf)
419-
FfiConverterBool.write(value.isLowPriority, into: &buf)
420-
}
421-
}
422-
423-
424-
public func FfiConverterTypeRoomNotableTags_lift(_ buf: RustBuffer) throws -> RoomNotableTags {
425-
return try FfiConverterTypeRoomNotableTags.lift(buf)
426-
}
427-
428-
public func FfiConverterTypeRoomNotableTags_lower(_ value: RoomNotableTags) -> RustBuffer {
429-
return FfiConverterTypeRoomNotableTags.lower(value)
430-
}
431-
432338
private enum InitializationResult {
433339
case ok
434340
case contractVersionMismatch

0 commit comments

Comments
 (0)