Skip to content

Commit 8a2f49c

Browse files
author
github-actions
committed
Bump SDK version to 25.07.10 (matrix-rust-sdk to fcdb63dcbe488d217594dc596e01a1164ed0c1fb)
1 parent 06b3bd5 commit 8a2f49c

File tree

2 files changed

+54
-19
lines changed

2 files changed

+54
-19
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 25
33
const val minorVersion = 7
4-
const val patchVersion = 7
4+
const val patchVersion = 10
55
}

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

Lines changed: 53 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,6 +2408,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
24082408

24092409

24102410

2411+
2412+
24112413

24122414

24132415

@@ -3127,8 +3129,8 @@ internal interface UniffiLib : Library {
31273129
): Pointer
31283130
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_state(`ptr`: Pointer,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
31293131
): Pointer
3130-
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(`ptr`: Pointer,`roomIds`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
3131-
): Unit
3132+
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(`ptr`: Pointer,`roomIds`: RustBuffer.ByValue,
3133+
): Long
31323134
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_sync_indicator(`ptr`: Pointer,`delayBeforeShowingInMs`: Int,`delayBeforeHidingInMs`: Int,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
31333135
): Pointer
31343136
fun uniffi_matrix_sdk_ffi_fn_clone_roommembersiterator(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -3295,6 +3297,8 @@ internal interface UniffiLib : Library {
32953297
): Pointer
32963298
fun uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_offline_mode(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
32973299
): Pointer
3300+
fun uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_share_pos(`ptr`: Pointer,`enable`: Byte,uniffi_out_err: UniffiRustCallStatus,
3301+
): Pointer
32983302
fun uniffi_matrix_sdk_ffi_fn_clone_taskhandle(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
32993303
): Pointer
33003304
fun uniffi_matrix_sdk_ffi_fn_free_taskhandle(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -4427,6 +4431,8 @@ internal interface UniffiLib : Library {
44274431
): Short
44284432
fun uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_offline_mode(
44294433
): Short
4434+
fun uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_share_pos(
4435+
): Short
44304436
fun uniffi_matrix_sdk_ffi_checksum_method_taskhandle_cancel(
44314437
): Short
44324438
fun uniffi_matrix_sdk_ffi_checksum_method_taskhandle_is_finished(
@@ -5200,7 +5206,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
52005206
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification() != 52873.toShort()) {
52015207
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
52025208
}
5203-
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notifications() != 32112.toShort()) {
5209+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notifications() != 64372.toShort()) {
52045210
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
52055211
}
52065212
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_room() != 26581.toShort()) {
@@ -5596,7 +5602,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
55965602
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_state() != 64650.toShort()) {
55975603
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
55985604
}
5599-
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() != 59765.toShort()) {
5605+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() != 5528.toShort()) {
56005606
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
56015607
}
56025608
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator() != 16821.toShort()) {
@@ -5770,6 +5776,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
57705776
if (lib.uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_offline_mode() != 16958.toShort()) {
57715777
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
57725778
}
5779+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_share_pos() != 18892.toShort()) {
5780+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5781+
}
57735782
if (lib.uniffi_matrix_sdk_ffi_checksum_method_taskhandle_cancel() != 9124.toShort()) {
57745783
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
57755784
}
@@ -12878,8 +12887,9 @@ public interface NotificationClientInterface {
1287812887
*
1287912888
* Returns an error if the flow failed when preparing to fetch the
1288012889
* notifications, and a [`HashMap`] containing either a
12881-
* [`NotificationItem`] or no entry for it if it failed to fetch a
12882-
* notification for the provided [`EventId`].
12890+
* [`BatchNotificationResult`], that indicates if the notification was
12891+
* successfully fetched (in which case, it's a [`NotificationStatus`]), or
12892+
* an error message if it couldn't be fetched.
1288312893
*/
1288412894
suspend fun `getNotifications`(`requests`: List<NotificationItemsRequest>): Map<kotlin.String, BatchNotificationResult>
1288512895

@@ -13012,8 +13022,9 @@ open class NotificationClient: Disposable, AutoCloseable, NotificationClientInte
1301213022
*
1301313023
* Returns an error if the flow failed when preparing to fetch the
1301413024
* notifications, and a [`HashMap`] containing either a
13015-
* [`NotificationItem`] or no entry for it if it failed to fetch a
13016-
* notification for the provided [`EventId`].
13025+
* [`BatchNotificationResult`], that indicates if the notification was
13026+
* successfully fetched (in which case, it's a [`NotificationStatus`]), or
13027+
* an error message if it couldn't be fetched.
1301713028
*/
1301813029
@Throws(ClientException::class)
1301913030
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
@@ -18352,7 +18363,7 @@ public interface RoomListServiceInterface {
1835218363

1835318364
fun `state`(`listener`: RoomListServiceStateListener): TaskHandle
1835418365

18355-
fun `subscribeToRooms`(`roomIds`: List<kotlin.String>)
18366+
suspend fun `subscribeToRooms`(`roomIds`: List<kotlin.String>)
1835618367

1835718368
fun `syncIndicator`(`delayBeforeShowingInMs`: kotlin.UInt, `delayBeforeHidingInMs`: kotlin.UInt, `listener`: RoomListServiceSyncIndicatorListener): TaskHandle
1835818369

@@ -18487,16 +18498,26 @@ open class RoomListService: Disposable, AutoCloseable, RoomListServiceInterface
1848718498

1848818499

1848918500

18490-
@Throws(RoomListException::class)override fun `subscribeToRooms`(`roomIds`: List<kotlin.String>)
18491-
=
18492-
callWithPointer {
18493-
uniffiRustCallWithError(RoomListException) { _status ->
18494-
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(
18495-
it, FfiConverterSequenceString.lower(`roomIds`),_status)
18496-
}
18501+
@Throws(RoomListException::class)
18502+
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
18503+
override suspend fun `subscribeToRooms`(`roomIds`: List<kotlin.String>) {
18504+
return uniffiRustCallAsync(
18505+
callWithPointer { thisPtr ->
18506+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(
18507+
thisPtr,
18508+
FfiConverterSequenceString.lower(`roomIds`),
18509+
)
18510+
},
18511+
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
18512+
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
18513+
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
18514+
// lift function
18515+
{ Unit },
18516+
18517+
// Error FFI converter
18518+
RoomListException.ErrorHandler,
18519+
)
1849718520
}
18498-
18499-
1850018521

1850118522
override fun `syncIndicator`(`delayBeforeShowingInMs`: kotlin.UInt, `delayBeforeHidingInMs`: kotlin.UInt, `listener`: RoomListServiceSyncIndicatorListener): TaskHandle {
1850218523
return FfiConverterTypeTaskHandle.lift(
@@ -22661,6 +22682,8 @@ public interface SyncServiceBuilderInterface {
2266122682
*/
2266222683
fun `withOfflineMode`(): SyncServiceBuilder
2266322684

22685+
fun `withSharePos`(`enable`: kotlin.Boolean): SyncServiceBuilder
22686+
2266422687
companion object
2266522688
}
2266622689

@@ -22793,6 +22816,18 @@ open class SyncServiceBuilder: Disposable, AutoCloseable, SyncServiceBuilderInte
2279322816
}
2279422817

2279522818

22819+
override fun `withSharePos`(`enable`: kotlin.Boolean): SyncServiceBuilder {
22820+
return FfiConverterTypeSyncServiceBuilder.lift(
22821+
callWithPointer {
22822+
uniffiRustCall() { _status ->
22823+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_share_pos(
22824+
it, FfiConverterBoolean.lower(`enable`),_status)
22825+
}
22826+
}
22827+
)
22828+
}
22829+
22830+
2279622831

2279722832

2279822833

0 commit comments

Comments
 (0)