Skip to content

Commit 94373ae

Browse files
committed
Bump to version v1.0.13 (matrix-rust-sdk/main f770248)
1 parent 95ac296 commit 94373ae

File tree

2 files changed

+9
-48
lines changed

2 files changed

+9
-48
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 = "f006221c3003e9279ebbf35facf6b7cea0eb0cd9c12aeccb1c3591b41088316a"
5-
let version = "v1.0.12"
4+
let checksum = "be1b65972780ed24592d4bf6655ed55ea8bc06c926e8a796d66aa51aefcfd36c"
5+
let version = "v1.0.13"
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: 7 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8230,7 +8230,7 @@ public func FfiConverterTypeTaskHandle_lower(_ value: TaskHandle) -> UnsafeMutab
82308230

82318231
public protocol TimelineProtocol : AnyObject {
82328232

8233-
func addListener(listener: TimelineListener) async -> RoomTimelineListenerResult
8233+
func addListener(listener: TimelineListener) async -> TaskHandle
82348234

82358235
func createPoll(question: String, answers: [String], maxSelections: UInt8, pollKind: PollKind) async throws
82368236

@@ -8391,7 +8391,7 @@ open class Timeline:
83918391

83928392

83938393

8394-
open func addListener(listener: TimelineListener)async -> RoomTimelineListenerResult {
8394+
open func addListener(listener: TimelineListener)async -> TaskHandle {
83958395
return
83968396
try! await uniffiRustCallAsync(
83978397
rustFutureFunc: {
@@ -8400,10 +8400,10 @@ open func addListener(listener: TimelineListener)async -> RoomTimelineListenerR
84008400
FfiConverterCallbackInterfaceTimelineListener.lower(listener)
84018401
)
84028402
},
8403-
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
8404-
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
8405-
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
8406-
liftFunc: FfiConverterTypeRoomTimelineListenerResult.lift,
8403+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_pointer,
8404+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_pointer,
8405+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_pointer,
8406+
liftFunc: FfiConverterTypeTaskHandle.lift,
84078407
errorHandler: nil
84088408

84098409
)
@@ -13230,45 +13230,6 @@ public func FfiConverterTypeRoomSubscription_lower(_ value: RoomSubscription) ->
1323013230
}
1323113231

1323213232

13233-
public struct RoomTimelineListenerResult {
13234-
public var items: [TimelineItem]
13235-
public var itemsStream: TaskHandle
13236-
13237-
// Default memberwise initializers are never public by default, so we
13238-
// declare one manually.
13239-
public init(items: [TimelineItem], itemsStream: TaskHandle) {
13240-
self.items = items
13241-
self.itemsStream = itemsStream
13242-
}
13243-
}
13244-
13245-
13246-
13247-
public struct FfiConverterTypeRoomTimelineListenerResult: FfiConverterRustBuffer {
13248-
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> RoomTimelineListenerResult {
13249-
return
13250-
try RoomTimelineListenerResult(
13251-
items: FfiConverterSequenceTypeTimelineItem.read(from: &buf),
13252-
itemsStream: FfiConverterTypeTaskHandle.read(from: &buf)
13253-
)
13254-
}
13255-
13256-
public static func write(_ value: RoomTimelineListenerResult, into buf: inout [UInt8]) {
13257-
FfiConverterSequenceTypeTimelineItem.write(value.items, into: &buf)
13258-
FfiConverterTypeTaskHandle.write(value.itemsStream, into: &buf)
13259-
}
13260-
}
13261-
13262-
13263-
public func FfiConverterTypeRoomTimelineListenerResult_lift(_ buf: RustBuffer) throws -> RoomTimelineListenerResult {
13264-
return try FfiConverterTypeRoomTimelineListenerResult.lift(buf)
13265-
}
13266-
13267-
public func FfiConverterTypeRoomTimelineListenerResult_lower(_ value: RoomTimelineListenerResult) -> RustBuffer {
13268-
return FfiConverterTypeRoomTimelineListenerResult.lower(value)
13269-
}
13270-
13271-
1327213233
public struct SearchUsersResults {
1327313234
public var results: [UserProfile]
1327413235
public var limited: Bool
@@ -25920,7 +25881,7 @@ private var initializationResult: InitializationResult {
2592025881
if (uniffi_matrix_sdk_ffi_checksum_method_taskhandle_is_finished() != 29008) {
2592125882
return InitializationResult.apiChecksumMismatch
2592225883
}
25923-
if (uniffi_matrix_sdk_ffi_checksum_method_timeline_add_listener() != 58433) {
25884+
if (uniffi_matrix_sdk_ffi_checksum_method_timeline_add_listener() != 18746) {
2592425885
return InitializationResult.apiChecksumMismatch
2592525886
}
2592625887
if (uniffi_matrix_sdk_ffi_checksum_method_timeline_create_poll() != 37925) {

0 commit comments

Comments
 (0)