Skip to content

Commit e81c83c

Browse files
committed
Bump SDK version to 0.2.46 (matrix-rust-sdk to e39a7101e94e729608ac166fa97f558c03fb1cb6)
1 parent e1175e7 commit e81c83c

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 0
33
const val minorVersion = 2
4-
const val patchVersion = 45
4+
const val patchVersion = 46
55
}

sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt

+38
Original file line numberDiff line numberDiff line change
@@ -2235,6 +2235,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
22352235

22362236

22372237

2238+
2239+
22382240

22392241

22402242

@@ -2350,6 +2352,8 @@ internal interface UniffiLib : Library {
23502352
): Long
23512353
fun uniffi_matrix_sdk_ffi_fn_method_client_get_url(`ptr`: Pointer,`url`: RustBuffer.ByValue,
23522354
): Long
2355+
fun uniffi_matrix_sdk_ffi_fn_method_client_get_url_preview_json(`ptr`: Pointer,`url`: RustBuffer.ByValue,
2356+
): Long
23532357
fun uniffi_matrix_sdk_ffi_fn_method_client_homeserver(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
23542358
): RustBuffer.ByValue
23552359
fun uniffi_matrix_sdk_ffi_fn_method_client_homeserver_login_details(`ptr`: Pointer,
@@ -3512,6 +3516,8 @@ internal interface UniffiLib : Library {
35123516
): Short
35133517
fun uniffi_matrix_sdk_ffi_checksum_method_client_get_url(
35143518
): Short
3519+
fun uniffi_matrix_sdk_ffi_checksum_method_client_get_url_preview_json(
3520+
): Short
35153521
fun uniffi_matrix_sdk_ffi_checksum_method_client_homeserver(
35163522
): Short
35173523
fun uniffi_matrix_sdk_ffi_checksum_method_client_homeserver_login_details(
@@ -4445,6 +4451,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
44454451
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_get_url() != 50489.toShort()) {
44464452
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
44474453
}
4454+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_get_url_preview_json() != 54853.toShort()) {
4455+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4456+
}
44484457
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_homeserver() != 26427.toShort()) {
44494458
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
44504459
}
@@ -6232,6 +6241,11 @@ public interface ClientInterface {
62326241
*/
62336242
suspend fun `getUrl`(`url`: kotlin.String): kotlin.String
62346243

6244+
/**
6245+
* SC: request url preview json data from the homeserver
6246+
*/
6247+
suspend fun `getUrlPreviewJson`(`url`: kotlin.String): kotlin.String
6248+
62356249
/**
62366250
* The homeserver this client is configured to use.
62376251
*/
@@ -7130,6 +7144,30 @@ open class Client: Disposable, AutoCloseable, ClientInterface {
71307144
}
71317145

71327146

7147+
/**
7148+
* SC: request url preview json data from the homeserver
7149+
*/
7150+
@Throws(ClientException::class)
7151+
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
7152+
override suspend fun `getUrlPreviewJson`(`url`: kotlin.String) : kotlin.String {
7153+
return uniffiRustCallAsync(
7154+
callWithPointer { thisPtr ->
7155+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_client_get_url_preview_json(
7156+
thisPtr,
7157+
FfiConverterString.lower(`url`),
7158+
)
7159+
},
7160+
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer(future, callback, continuation) },
7161+
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer(future, continuation) },
7162+
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(future) },
7163+
// lift function
7164+
{ FfiConverterString.lift(it) },
7165+
// Error FFI converter
7166+
ClientException.ErrorHandler,
7167+
)
7168+
}
7169+
7170+
71337171
/**
71347172
* The homeserver this client is configured to use.
71357173
*/override fun `homeserver`(): kotlin.String {

0 commit comments

Comments
 (0)