Skip to content

Commit d59e7cf

Browse files
author
github-actions
committed
Bump SDK version to 26.04.15 (matrix-rust-sdk to b9b40c0ef2df048ca8703211c8e4c26f15a1df22)
1 parent a44955d commit d59e7cf

2 files changed

Lines changed: 101 additions & 1 deletion

File tree

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 = "26"
33
const val minorVersion = "04"
4-
const val patchVersion = "13"
4+
const val patchVersion = "15"
55
}

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

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,6 +2014,8 @@ external fun uniffi_matrix_sdk_ffi_checksum_method_client_session(
20142014
): Short
20152015
external fun uniffi_matrix_sdk_ffi_checksum_method_client_set_account_data(
20162016
): Short
2017+
external fun uniffi_matrix_sdk_ffi_checksum_method_client_set_avatar_url(
2018+
): Short
20172019
external fun uniffi_matrix_sdk_ffi_checksum_method_client_set_delegate(
20182020
): Short
20192021
external fun uniffi_matrix_sdk_ffi_checksum_method_client_set_display_name(
@@ -2692,6 +2694,10 @@ external fun uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish(
26922694
): Short
26932695
external fun uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_offline_mode(
26942696
): Short
2697+
external fun uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_room_list_connection_id(
2698+
): Short
2699+
external fun uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_room_list_timeline_limit(
2700+
): Short
26952701
external fun uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_share_pos(
26962702
): Short
26972703
external fun uniffi_matrix_sdk_ffi_checksum_method_taskhandle_cancel(
@@ -3202,6 +3208,8 @@ external fun uniffi_matrix_sdk_ffi_fn_method_client_session(`ptr`: Long,uniffi_o
32023208
): RustBuffer.ByValue
32033209
external fun uniffi_matrix_sdk_ffi_fn_method_client_set_account_data(`ptr`: Long,`eventType`: RustBuffer.ByValue,`content`: RustBuffer.ByValue,
32043210
): Long
3211+
external fun uniffi_matrix_sdk_ffi_fn_method_client_set_avatar_url(`ptr`: Long,`url`: RustBuffer.ByValue,
3212+
): Long
32053213
external fun uniffi_matrix_sdk_ffi_fn_method_client_set_delegate(`ptr`: Long,`delegate`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
32063214
): RustBuffer.ByValue
32073215
external fun uniffi_matrix_sdk_ffi_fn_method_client_set_display_name(`ptr`: Long,`name`: RustBuffer.ByValue,
@@ -4044,6 +4052,10 @@ external fun uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_finish(`ptr`: Lo
40444052
): Long
40454053
external fun uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_offline_mode(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,
40464054
): Long
4055+
external fun uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_room_list_connection_id(`ptr`: Long,`connectionId`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
4056+
): Long
4057+
external fun uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_room_list_timeline_limit(`ptr`: Long,`limit`: Int,uniffi_out_err: UniffiRustCallStatus,
4058+
): Long
40474059
external fun uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_share_pos(`ptr`: Long,`enable`: Byte,uniffi_out_err: UniffiRustCallStatus,
40484060
): Long
40494061
external fun uniffi_matrix_sdk_ffi_fn_clone_taskhandle(`handle`: Long,uniffi_out_err: UniffiRustCallStatus,
@@ -5894,6 +5906,11 @@ public interface ClientInterface {
58945906
*/
58955907
suspend fun `setAccountData`(`eventType`: kotlin.String, `content`: kotlin.String)
58965908

5909+
/**
5910+
* Updates the user's avatar using the provided MXC url.
5911+
*/
5912+
suspend fun `setAvatarUrl`(`url`: kotlin.String)
5913+
58975914
/**
58985915
* Sets the [ClientDelegate] which will inform about authentication errors.
58995916
* Returns an error if the delegate was already set.
@@ -7897,6 +7914,31 @@ open class Client: Disposable, AutoCloseable, ClientInterface
78977914
}
78987915

78997916

7917+
/**
7918+
* Updates the user's avatar using the provided MXC url.
7919+
*/
7920+
@Throws(ClientException::class)
7921+
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
7922+
override suspend fun `setAvatarUrl`(`url`: kotlin.String) {
7923+
return uniffiRustCallAsync(
7924+
callWithHandle { uniffiHandle ->
7925+
UniffiLib.uniffi_matrix_sdk_ffi_fn_method_client_set_avatar_url(
7926+
uniffiHandle,
7927+
FfiConverterString.lower(`url`),
7928+
)
7929+
},
7930+
{ future, callback, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
7931+
{ future, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
7932+
{ future -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
7933+
// lift function
7934+
{ Unit },
7935+
7936+
// Error FFI converter
7937+
ClientException.ErrorHandler,
7938+
)
7939+
}
7940+
7941+
79007942
/**
79017943
* Sets the [ClientDelegate] which will inform about authentication errors.
79027944
* Returns an error if the delegate was already set.
@@ -26794,6 +26836,24 @@ public interface SyncServiceBuilderInterface {
2679426836
*/
2679526837
fun `withOfflineMode`(): SyncServiceBuilder
2679626838

26839+
/**
26840+
* Set a custom Sliding Sync connection ID for the room list service.
26841+
*
26842+
* By default [`matrix_sdk_ui::room_list_service::DEFAULT_CONNECTION_ID`]
26843+
* is used. Set a different value for secondary processes such as iOS
26844+
* Share Extensions that are not meant to reuse the main app's
26845+
* connection.
26846+
*/
26847+
fun `withRoomListConnectionId`(`connectionId`: kotlin.String): SyncServiceBuilder
26848+
26849+
/**
26850+
* Set a custom timeline limit for the room list service.
26851+
*
26852+
* When set, overrides the default timeline limit of
26853+
* [`matrix_sdk_ui::room_list_service::DEFAULT_LIST_TIMELINE_LIMIT`].
26854+
*/
26855+
fun `withRoomListTimelineLimit`(`limit`: kotlin.UInt): SyncServiceBuilder
26856+
2679726857
fun `withSharePos`(`enable`: kotlin.Boolean): SyncServiceBuilder
2679826858

2679926859
companion object
@@ -26932,6 +26992,46 @@ open class SyncServiceBuilder: Disposable, AutoCloseable, SyncServiceBuilderInte
2693226992
}
2693326993

2693426994

26995+
26996+
/**
26997+
* Set a custom Sliding Sync connection ID for the room list service.
26998+
*
26999+
* By default [`matrix_sdk_ui::room_list_service::DEFAULT_CONNECTION_ID`]
27000+
* is used. Set a different value for secondary processes such as iOS
27001+
* Share Extensions that are not meant to reuse the main app's
27002+
* connection.
27003+
*/override fun `withRoomListConnectionId`(`connectionId`: kotlin.String): SyncServiceBuilder {
27004+
return FfiConverterTypeSyncServiceBuilder.lift(
27005+
callWithHandle {
27006+
uniffiRustCall() { _status ->
27007+
UniffiLib.uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_room_list_connection_id(
27008+
it,
27009+
FfiConverterString.lower(`connectionId`),_status)
27010+
}
27011+
}
27012+
)
27013+
}
27014+
27015+
27016+
27017+
/**
27018+
* Set a custom timeline limit for the room list service.
27019+
*
27020+
* When set, overrides the default timeline limit of
27021+
* [`matrix_sdk_ui::room_list_service::DEFAULT_LIST_TIMELINE_LIMIT`].
27022+
*/override fun `withRoomListTimelineLimit`(`limit`: kotlin.UInt): SyncServiceBuilder {
27023+
return FfiConverterTypeSyncServiceBuilder.lift(
27024+
callWithHandle {
27025+
uniffiRustCall() { _status ->
27026+
UniffiLib.uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_room_list_timeline_limit(
27027+
it,
27028+
FfiConverterUInt.lower(`limit`),_status)
27029+
}
27030+
}
27031+
)
27032+
}
27033+
27034+
2693527035
override fun `withSharePos`(`enable`: kotlin.Boolean): SyncServiceBuilder {
2693627036
return FfiConverterTypeSyncServiceBuilder.lift(
2693727037
callWithHandle {

0 commit comments

Comments
 (0)