Skip to content

Commit dfb5479

Browse files
committed
Bump to version v1.0.76 (matrix-rust-sdk/main 9e20659)
1 parent 6b14c04 commit dfb5479

File tree

2 files changed

+40
-16
lines changed

2 files changed

+40
-16
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 = "e02e7ab58c3161a810ead8d7495a3172e092afd609d8d86fea7c33d45d246a7b"
5-
let version = "v1.0.75"
4+
let checksum = "dd7407ec4598697dd34756b18af975704b6ab47fd47de81b93e442ac5e06d7aa"
5+
let version = "v1.0.76"
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: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3828,6 +3828,8 @@ public func FfiConverterTypeMediaFileHandle_lower(_ value: MediaFileHandle) -> U
38283828

38293829
public protocol MediaSourceProtocol : AnyObject {
38303830

3831+
func toJson() -> String
3832+
38313833
func url() -> String
38323834

38333835
}
@@ -3871,8 +3873,31 @@ open class MediaSource:
38713873
}
38723874

38733875

3876+
public static func fromJson(json: String)throws -> MediaSource {
3877+
return try FfiConverterTypeMediaSource.lift(try rustCallWithError(FfiConverterTypeClientError.lift) {
3878+
uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json(
3879+
FfiConverterString.lower(json),$0
3880+
)
3881+
})
3882+
}
3883+
3884+
public static func fromUrl(url: String)throws -> MediaSource {
3885+
return try FfiConverterTypeMediaSource.lift(try rustCallWithError(FfiConverterTypeClientError.lift) {
3886+
uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_url(
3887+
FfiConverterString.lower(url),$0
3888+
)
3889+
})
3890+
}
3891+
38743892

38753893

3894+
open func toJson() -> String {
3895+
return try! FfiConverterString.lift(try! rustCall() {
3896+
uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json(self.uniffiClonePointer(),$0
3897+
)
3898+
})
3899+
}
3900+
38763901
open func url() -> String {
38773902
return try! FfiConverterString.lift(try! rustCall() {
38783903
uniffi_matrix_sdk_ffi_fn_method_mediasource_url(self.uniffiClonePointer(),$0
@@ -15155,7 +15180,7 @@ public struct RoomPreviewInfo {
1515515180
/**
1515615181
* Is the history world-readable for this room?
1515715182
*/
15158-
public var isHistoryWorldReadable: Bool
15183+
public var isHistoryWorldReadable: Bool?
1515915184
/**
1516015185
* The membership state for the current user, if known.
1516115186
*/
@@ -15202,7 +15227,7 @@ public struct RoomPreviewInfo {
1520215227
*/roomType: RoomType,
1520315228
/**
1520415229
* Is the history world-readable for this room?
15205-
*/isHistoryWorldReadable: Bool,
15230+
*/isHistoryWorldReadable: Bool?,
1520615231
/**
1520715232
* The membership state for the current user, if known.
1520815233
*/membership: Membership?,
@@ -15307,7 +15332,7 @@ public struct FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer {
1530715332
numJoinedMembers: FfiConverterUInt64.read(from: &buf),
1530815333
numActiveMembers: FfiConverterOptionUInt64.read(from: &buf),
1530915334
roomType: FfiConverterTypeRoomType.read(from: &buf),
15310-
isHistoryWorldReadable: FfiConverterBool.read(from: &buf),
15335+
isHistoryWorldReadable: FfiConverterOptionBool.read(from: &buf),
1531115336
membership: FfiConverterOptionTypeMembership.read(from: &buf),
1531215337
joinRule: FfiConverterTypeJoinRule.read(from: &buf),
1531315338
isDirect: FfiConverterOptionBool.read(from: &buf),
@@ -15324,7 +15349,7 @@ public struct FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer {
1532415349
FfiConverterUInt64.write(value.numJoinedMembers, into: &buf)
1532515350
FfiConverterOptionUInt64.write(value.numActiveMembers, into: &buf)
1532615351
FfiConverterTypeRoomType.write(value.roomType, into: &buf)
15327-
FfiConverterBool.write(value.isHistoryWorldReadable, into: &buf)
15352+
FfiConverterOptionBool.write(value.isHistoryWorldReadable, into: &buf)
1532815353
FfiConverterOptionTypeMembership.write(value.membership, into: &buf)
1532915354
FfiConverterTypeJoinRule.write(value.joinRule, into: &buf)
1533015355
FfiConverterOptionBool.write(value.isDirect, into: &buf)
@@ -28735,13 +28760,6 @@ public func matrixToUserPermalink(userId: String)throws -> String {
2873528760
)
2873628761
})
2873728762
}
28738-
public func mediaSourceFromUrl(url: String) -> MediaSource {
28739-
return try! FfiConverterTypeMediaSource.lift(try! rustCall() {
28740-
uniffi_matrix_sdk_ffi_fn_func_media_source_from_url(
28741-
FfiConverterString.lower(url),$0
28742-
)
28743-
})
28744-
}
2874528763
public func messageEventContentFromHtml(body: String, htmlBody: String) -> RoomMessageEventContentWithoutRelation {
2874628764
return try! FfiConverterTypeRoomMessageEventContentWithoutRelation.lift(try! rustCall() {
2874728765
uniffi_matrix_sdk_ffi_fn_func_message_event_content_from_html(
@@ -28897,9 +28915,6 @@ private var initializationResult: InitializationResult = {
2889728915
if (uniffi_matrix_sdk_ffi_checksum_func_matrix_to_user_permalink() != 46473) {
2889828916
return InitializationResult.apiChecksumMismatch
2889928917
}
28900-
if (uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url() != 12165) {
28901-
return InitializationResult.apiChecksumMismatch
28902-
}
2890328918
if (uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html() != 37203) {
2890428919
return InitializationResult.apiChecksumMismatch
2890528920
}
@@ -29317,6 +29332,9 @@ private var initializationResult: InitializationResult = {
2931729332
if (uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist() != 12883) {
2931829333
return InitializationResult.apiChecksumMismatch
2931929334
}
29335+
if (uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json() != 23306) {
29336+
return InitializationResult.apiChecksumMismatch
29337+
}
2932029338
if (uniffi_matrix_sdk_ffi_checksum_method_mediasource_url() != 62692) {
2932129339
return InitializationResult.apiChecksumMismatch
2932229340
}
@@ -29977,6 +29995,12 @@ private var initializationResult: InitializationResult = {
2997729995
if (uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new() != 27991) {
2997829996
return InitializationResult.apiChecksumMismatch
2997929997
}
29998+
if (uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json() != 10564) {
29999+
return InitializationResult.apiChecksumMismatch
30000+
}
30001+
if (uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url() != 11983) {
30002+
return InitializationResult.apiChecksumMismatch
30003+
}
2998030004
if (uniffi_matrix_sdk_ffi_checksum_constructor_qrcodedata_from_bytes() != 32675) {
2998130005
return InitializationResult.apiChecksumMismatch
2998230006
}

0 commit comments

Comments
 (0)