Skip to content

Commit

Permalink
Bump SDK version to 0.2.46 (matrix-rust-sdk to e39a7101e94e729608ac16…
Browse files Browse the repository at this point in the history
…6fa97f558c03fb1cb6)
  • Loading branch information
SpiritCroc committed Dec 29, 2024
1 parent e1175e7 commit e81c83c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
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 = 45
const val patchVersion = 46
}
Original file line number Diff line number Diff line change
Expand Up @@ -2235,6 +2235,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(








Expand Down Expand Up @@ -2350,6 +2352,8 @@ internal interface UniffiLib : Library {
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_get_url(`ptr`: Pointer,`url`: RustBuffer.ByValue,
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_get_url_preview_json(`ptr`: Pointer,`url`: RustBuffer.ByValue,
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_homeserver(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_method_client_homeserver_login_details(`ptr`: Pointer,
Expand Down Expand Up @@ -3512,6 +3516,8 @@ internal interface UniffiLib : Library {
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_get_url(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_get_url_preview_json(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_homeserver(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_homeserver_login_details(
Expand Down Expand Up @@ -4445,6 +4451,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_get_url() != 50489.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_get_url_preview_json() != 54853.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_homeserver() != 26427.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -6232,6 +6241,11 @@ public interface ClientInterface {
*/
suspend fun `getUrl`(`url`: kotlin.String): kotlin.String

/**
* SC: request url preview json data from the homeserver
*/
suspend fun `getUrlPreviewJson`(`url`: kotlin.String): kotlin.String

/**
* The homeserver this client is configured to use.
*/
Expand Down Expand Up @@ -7130,6 +7144,30 @@ open class Client: Disposable, AutoCloseable, ClientInterface {
}


/**
* SC: request url preview json data from the homeserver
*/
@Throws(ClientException::class)
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
override suspend fun `getUrlPreviewJson`(`url`: kotlin.String) : kotlin.String {
return uniffiRustCallAsync(
callWithPointer { thisPtr ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_client_get_url_preview_json(
thisPtr,
FfiConverterString.lower(`url`),
)
},
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer(future, callback, continuation) },
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer(future, continuation) },
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(future) },
// lift function
{ FfiConverterString.lift(it) },
// Error FFI converter
ClientException.ErrorHandler,
)
}


/**
* The homeserver this client is configured to use.
*/override fun `homeserver`(): kotlin.String {
Expand Down

0 comments on commit e81c83c

Please sign in to comment.