diff --git a/buildSrc/src/main/kotlin/BuildVersionsSDK.kt b/buildSrc/src/main/kotlin/BuildVersionsSDK.kt index bf806c7..958f267 100644 --- a/buildSrc/src/main/kotlin/BuildVersionsSDK.kt +++ b/buildSrc/src/main/kotlin/BuildVersionsSDK.kt @@ -1,5 +1,5 @@ object BuildVersionsSDK { const val majorVersion = 0 const val minorVersion = 2 - const val patchVersion = 66 + const val patchVersion = 67 } diff --git a/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt b/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt index 8f30a96..5504932 100644 --- a/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt +++ b/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt @@ -2165,6 +2165,10 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider( + + + + @@ -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, @@ -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, @@ -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( @@ -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( @@ -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( @@ -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") } @@ -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") } @@ -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") } @@ -10670,6 +10688,8 @@ public object FfiConverterTypeMediaFileHandle: FfiConverter + UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json( + it, _status) +} + } + ) + } + + override fun `url`(): kotlin.String { return FfiConverterString.lift( callWithPointer { @@ -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) +} + ) + } + + + + } } @@ -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. */ @@ -25418,7 +25473,7 @@ public object FfiConverterTypeRoomPreviewInfo: FfiConverterRustBuffer - 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 ->