Skip to content

Commit

Permalink
Bump SDK version to 0.2.67 (matrix-rust-sdk to 94f82bc6d05e48b5a902d6…
Browse files Browse the repository at this point in the history
…f4013d865e36111664)
  • Loading branch information
github-actions committed Nov 27, 2024
1 parent 9abf629 commit 3e2aab4
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 22 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/BuildVersionsSDK.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object BuildVersionsSDK {
const val majorVersion = 0
const val minorVersion = 2
const val patchVersion = 66
const val patchVersion = 67
}
Original file line number Diff line number Diff line change
Expand Up @@ -2165,6 +2165,10 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(










Expand Down Expand Up @@ -2511,6 +2515,12 @@ internal interface UniffiLib : Library {
): Pointer
fun uniffi_matrix_sdk_ffi_fn_free_mediasource(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Unit
fun uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json(`json`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_url(`url`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_method_mediasource_url(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_clone_notificationclient(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
Expand Down Expand Up @@ -3153,8 +3163,6 @@ internal interface UniffiLib : Library {
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_func_matrix_to_user_permalink(`userId`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_func_media_source_from_url(`url`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_func_message_event_content_from_html(`body`: RustBuffer.ByValue,`htmlBody`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_func_message_event_content_from_html_as_emote(`body`: RustBuffer.ByValue,`htmlBody`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
Expand Down Expand Up @@ -3313,8 +3321,6 @@ internal interface UniffiLib : Library {
): Short
fun uniffi_matrix_sdk_ffi_checksum_func_matrix_to_user_permalink(
): Short
fun uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url(
): Short
fun uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html(
): Short
fun uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html_as_emote(
Expand Down Expand Up @@ -3593,6 +3599,8 @@ internal interface UniffiLib : Library {
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_mediasource_url(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification(
Expand Down Expand Up @@ -4033,6 +4041,10 @@ internal interface UniffiLib : Library {
): Short
fun uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new(
): Short
fun uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json(
): Short
fun uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url(
): Short
fun uniffi_matrix_sdk_ffi_checksum_constructor_qrcodedata_from_bytes(
): Short
fun uniffi_matrix_sdk_ffi_checksum_constructor_span_current(
Expand Down Expand Up @@ -4161,9 +4173,6 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
if (lib.uniffi_matrix_sdk_ffi_checksum_func_matrix_to_user_permalink() != 46473.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url() != 12165.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html() != 37203.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -4581,6 +4590,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
if (lib.uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist() != 12883.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json() != 23306.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_mediasource_url() != 62692.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -5241,6 +5253,12 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new() != 27991.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json() != 10564.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url() != 11983.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_qrcodedata_from_bytes() != 32675.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -10670,6 +10688,8 @@ public object FfiConverterTypeMediaFileHandle: FfiConverter<MediaFileHandle, Poi

public interface MediaSourceInterface {

fun `toJson`(): kotlin.String

fun `url`(): kotlin.String

companion object
Expand Down Expand Up @@ -10756,6 +10776,18 @@ open class MediaSource: Disposable, AutoCloseable, MediaSourceInterface {
}
}

override fun `toJson`(): kotlin.String {
return FfiConverterString.lift(
callWithPointer {
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json(
it, _status)
}
}
)
}


override fun `url`(): kotlin.String {
return FfiConverterString.lift(
callWithPointer {
Expand All @@ -10771,8 +10803,31 @@ open class MediaSource: Disposable, AutoCloseable, MediaSourceInterface {



companion object {

@Throws(ClientException::class) fun `fromJson`(`json`: kotlin.String): MediaSource {
return FfiConverterTypeMediaSource.lift(
uniffiRustCallWithError(ClientException) { _status ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json(
FfiConverterString.lower(`json`),_status)
}
)
}

companion object


@Throws(ClientException::class) fun `fromUrl`(`url`: kotlin.String): MediaSource {
return FfiConverterTypeMediaSource.lift(
uniffiRustCallWithError(ClientException) { _status ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_url(
FfiConverterString.lower(`url`),_status)
}
)
}



}

}

Expand Down Expand Up @@ -25385,7 +25440,7 @@ data class RoomPreviewInfo (
/**
* Is the history world-readable for this room?
*/
var `isHistoryWorldReadable`: kotlin.Boolean,
var `isHistoryWorldReadable`: kotlin.Boolean?,
/**
* The membership state for the current user, if known.
*/
Expand Down Expand Up @@ -25418,7 +25473,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
FfiConverterULong.read(buf),
FfiConverterOptionalULong.read(buf),
FfiConverterTypeRoomType.read(buf),
FfiConverterBoolean.read(buf),
FfiConverterOptionalBoolean.read(buf),
FfiConverterOptionalTypeMembership.read(buf),
FfiConverterTypeJoinRule.read(buf),
FfiConverterOptionalBoolean.read(buf),
Expand All @@ -25435,7 +25490,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
FfiConverterULong.allocationSize(value.`numJoinedMembers`) +
FfiConverterOptionalULong.allocationSize(value.`numActiveMembers`) +
FfiConverterTypeRoomType.allocationSize(value.`roomType`) +
FfiConverterBoolean.allocationSize(value.`isHistoryWorldReadable`) +
FfiConverterOptionalBoolean.allocationSize(value.`isHistoryWorldReadable`) +
FfiConverterOptionalTypeMembership.allocationSize(value.`membership`) +
FfiConverterTypeJoinRule.allocationSize(value.`joinRule`) +
FfiConverterOptionalBoolean.allocationSize(value.`isDirect`) +
Expand All @@ -25451,7 +25506,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer<RoomPrevie
FfiConverterULong.write(value.`numJoinedMembers`, buf)
FfiConverterOptionalULong.write(value.`numActiveMembers`, buf)
FfiConverterTypeRoomType.write(value.`roomType`, buf)
FfiConverterBoolean.write(value.`isHistoryWorldReadable`, buf)
FfiConverterOptionalBoolean.write(value.`isHistoryWorldReadable`, buf)
FfiConverterOptionalTypeMembership.write(value.`membership`, buf)
FfiConverterTypeJoinRule.write(value.`joinRule`, buf)
FfiConverterOptionalBoolean.write(value.`isDirect`, buf)
Expand Down Expand Up @@ -38823,15 +38878,6 @@ public object FfiConverterMapStringSequenceString: FfiConverterRustBuffer<Map<ko
)
}

fun `mediaSourceFromUrl`(`url`: kotlin.String): MediaSource {
return FfiConverterTypeMediaSource.lift(
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_func_media_source_from_url(
FfiConverterString.lower(`url`),_status)
}
)
}

fun `messageEventContentFromHtml`(`body`: kotlin.String, `htmlBody`: kotlin.String): RoomMessageEventContentWithoutRelation {
return FfiConverterTypeRoomMessageEventContentWithoutRelation.lift(
uniffiRustCall() { _status ->
Expand Down

0 comments on commit 3e2aab4

Please sign in to comment.