Skip to content

Commit f3b4778

Browse files
author
github-actions
committed
Bump SDK version to 0.2.39 (matrix-rust-sdk to be404f666614af024bc09a2f220702ec613219c6)
1 parent ad5df3b commit f3b4778

File tree

2 files changed

+54
-21
lines changed

2 files changed

+54
-21
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 = 38
4+
const val patchVersion = 39
55
}

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

+53-20
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
21082108

21092109

21102110

2111+
2112+
21112113

21122114

21132115

@@ -2435,6 +2437,8 @@ internal interface UniffiLib : Library {
24352437
): Unit
24362438
fun uniffi_matrix_sdk_ffi_fn_method_identityresethandle_auth_type(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
24372439
): RustBuffer.ByValue
2440+
fun uniffi_matrix_sdk_ffi_fn_method_identityresethandle_cancel(`ptr`: Pointer,
2441+
): Long
24382442
fun uniffi_matrix_sdk_ffi_fn_method_identityresethandle_reset(`ptr`: Pointer,`auth`: RustBuffer.ByValue,
24392443
): Long
24402444
fun uniffi_matrix_sdk_ffi_fn_clone_mediafilehandle(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2743,8 +2747,6 @@ internal interface UniffiLib : Library {
27432747
): Long
27442748
fun uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info(`ptr`: Pointer,
27452749
): Long
2746-
fun uniffi_matrix_sdk_ffi_fn_method_roomlistitem_subscribe(`ptr`: Pointer,`settings`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
2747-
): Unit
27482750
fun uniffi_matrix_sdk_ffi_fn_clone_roomlistservice(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
27492751
): Pointer
27502752
fun uniffi_matrix_sdk_ffi_fn_free_roomlistservice(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2755,6 +2757,8 @@ internal interface UniffiLib : Library {
27552757
): Pointer
27562758
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_state(`ptr`: Pointer,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
27572759
): Pointer
2760+
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(`ptr`: Pointer,`roomIds`: RustBuffer.ByValue,`settings`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
2761+
): Unit
27582762
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_sync_indicator(`ptr`: Pointer,`delayBeforeShowingInMs`: Int,`delayBeforeHidingInMs`: Int,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
27592763
): Pointer
27602764
fun uniffi_matrix_sdk_ffi_fn_clone_roommembersiterator(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -3489,6 +3493,8 @@ internal interface UniffiLib : Library {
34893493
): Short
34903494
fun uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_auth_type(
34913495
): Short
3496+
fun uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_cancel(
3497+
): Short
34923498
fun uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_reset(
34933499
): Short
34943500
fun uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_path(
@@ -3751,14 +3757,14 @@ internal interface UniffiLib : Library {
37513757
): Short
37523758
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info(
37533759
): Short
3754-
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_subscribe(
3755-
): Short
37563760
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_all_rooms(
37573761
): Short
37583762
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_room(
37593763
): Short
37603764
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_state(
37613765
): Short
3766+
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms(
3767+
): Short
37623768
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator(
37633769
): Short
37643770
fun uniffi_matrix_sdk_ffi_checksum_method_roommembersiterator_len(
@@ -4444,6 +4450,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
44444450
if (lib.uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_auth_type() != 43501.toShort()) {
44454451
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
44464452
}
4453+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_cancel() != 57622.toShort()) {
4454+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4455+
}
44474456
if (lib.uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_reset() != 11997.toShort()) {
44484457
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
44494458
}
@@ -4837,9 +4846,6 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
48374846
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info() != 32985.toShort()) {
48384847
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
48394848
}
4840-
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_subscribe() != 60003.toShort()) {
4841-
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4842-
}
48434849
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_all_rooms() != 49704.toShort()) {
48444850
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
48454851
}
@@ -4849,6 +4855,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
48494855
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_state() != 64650.toShort()) {
48504856
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
48514857
}
4858+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() != 21360.toShort()) {
4859+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4860+
}
48524861
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator() != 16821.toShort()) {
48534862
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
48544863
}
@@ -9386,6 +9395,8 @@ public interface IdentityResetHandleInterface {
93869395
*/
93879396
fun `authType`(): CrossSigningResetAuthType
93889397

9398+
suspend fun `cancel`()
9399+
93899400
/**
93909401
* This method starts the identity reset process and
93919402
* will go through the following steps:
@@ -9498,6 +9509,27 @@ open class IdentityResetHandle: Disposable, AutoCloseable, IdentityResetHandleIn
94989509

94999510

95009511

9512+
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
9513+
override suspend fun `cancel`() {
9514+
return uniffiRustCallAsync(
9515+
callWithPointer { thisPtr ->
9516+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_identityresethandle_cancel(
9517+
thisPtr,
9518+
9519+
)
9520+
},
9521+
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
9522+
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
9523+
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
9524+
// lift function
9525+
{ Unit },
9526+
9527+
// Error FFI converter
9528+
UniffiNullRustCallStatusErrorHandler,
9529+
)
9530+
}
9531+
9532+
95019533
/**
95029534
* This method starts the identity reset process and
95039535
* will go through the following steps:
@@ -15101,8 +15133,6 @@ public interface RoomListItemInterface {
1510115133

1510215134
suspend fun `roomInfo`(): RoomInfo
1510315135

15104-
fun `subscribe`(`settings`: RoomSubscription?)
15105-
1510615136
companion object
1510715137
}
1510815138

@@ -15384,17 +15414,6 @@ open class RoomListItem: Disposable, AutoCloseable, RoomListItemInterface {
1538415414
)
1538515415
}
1538615416

15387-
override fun `subscribe`(`settings`: RoomSubscription?)
15388-
=
15389-
callWithPointer {
15390-
uniffiRustCall() { _status ->
15391-
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistitem_subscribe(
15392-
it, FfiConverterOptionalTypeRoomSubscription.lower(`settings`),_status)
15393-
}
15394-
}
15395-
15396-
15397-
1539815417

1539915418

1540015419

@@ -15535,6 +15554,8 @@ public interface RoomListServiceInterface {
1553515554

1553615555
fun `state`(`listener`: RoomListServiceStateListener): TaskHandle
1553715556

15557+
fun `subscribeToRooms`(`roomIds`: List<kotlin.String>, `settings`: RoomSubscription?)
15558+
1553815559
fun `syncIndicator`(`delayBeforeShowingInMs`: kotlin.UInt, `delayBeforeHidingInMs`: kotlin.UInt, `listener`: RoomListServiceSyncIndicatorListener): TaskHandle
1553915560

1554015561
companion object
@@ -15667,6 +15688,18 @@ open class RoomListService: Disposable, AutoCloseable, RoomListServiceInterface
1566715688
}
1566815689

1566915690

15691+
15692+
@Throws(RoomListException::class)override fun `subscribeToRooms`(`roomIds`: List<kotlin.String>, `settings`: RoomSubscription?)
15693+
=
15694+
callWithPointer {
15695+
uniffiRustCallWithError(RoomListException) { _status ->
15696+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(
15697+
it, FfiConverterSequenceString.lower(`roomIds`),FfiConverterOptionalTypeRoomSubscription.lower(`settings`),_status)
15698+
}
15699+
}
15700+
15701+
15702+
1567015703
override fun `syncIndicator`(`delayBeforeShowingInMs`: kotlin.UInt, `delayBeforeHidingInMs`: kotlin.UInt, `listener`: RoomListServiceSyncIndicatorListener): TaskHandle {
1567115704
return FfiConverterTypeTaskHandle.lift(
1567215705
callWithPointer {

0 commit comments

Comments
 (0)