Skip to content

Commit ad5df3b

Browse files
author
github-actions
committed
Bump SDK version to 0.2.38 (matrix-rust-sdk to 57963dcf364a2aa9491b9642565da895332883bf)
1 parent bd79563 commit ad5df3b

File tree

2 files changed

+82
-1
lines changed

2 files changed

+82
-1
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 = 0
33
const val minorVersion = 2
4-
const val patchVersion = 37
4+
const val patchVersion = 38
55
}

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

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
21062106

21072107

21082108

2109+
2110+
21092111

21102112

21112113

@@ -2315,6 +2317,8 @@ internal interface UniffiLib : Library {
23152317
): Pointer
23162318
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_proxy(`ptr`: Pointer,`url`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
23172319
): Pointer
2320+
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_request_config(`ptr`: Pointer,`config`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
2321+
): Pointer
23182322
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_requires_sliding_sync(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
23192323
): Pointer
23202324
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_server_name(`ptr`: Pointer,`serverName`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
@@ -3383,6 +3387,8 @@ internal interface UniffiLib : Library {
33833387
): Short
33843388
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_proxy(
33853389
): Short
3390+
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_request_config(
3391+
): Short
33863392
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_requires_sliding_sync(
33873393
): Short
33883394
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_server_name(
@@ -4285,6 +4291,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
42854291
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_proxy() != 5659.toShort()) {
42864292
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
42874293
}
4294+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_request_config() != 58783.toShort()) {
4295+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4296+
}
42884297
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_requires_sliding_sync() != 18165.toShort()) {
42894298
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
42904299
}
@@ -7363,6 +7372,11 @@ public interface ClientBuilderInterface {
73637372

73647373
fun `proxy`(`url`: kotlin.String): ClientBuilder
73657374

7375+
/**
7376+
* Add a default request config to this client.
7377+
*/
7378+
fun `requestConfig`(`config`: RequestConfig): ClientBuilder
7379+
73667380
fun `requiresSlidingSync`(): ClientBuilder
73677381

73687382
fun `serverName`(`serverName`: kotlin.String): ClientBuilder
@@ -7681,6 +7695,21 @@ open class ClientBuilder: Disposable, AutoCloseable, ClientBuilderInterface {
76817695
}
76827696

76837697

7698+
7699+
/**
7700+
* Add a default request config to this client.
7701+
*/override fun `requestConfig`(`config`: RequestConfig): ClientBuilder {
7702+
return FfiConverterTypeClientBuilder.lift(
7703+
callWithPointer {
7704+
uniffiRustCall() { _status ->
7705+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_clientbuilder_request_config(
7706+
it, FfiConverterTypeRequestConfig.lower(`config`),_status)
7707+
}
7708+
}
7709+
)
7710+
}
7711+
7712+
76847713
override fun `requiresSlidingSync`(): ClientBuilder {
76857714
return FfiConverterTypeClientBuilder.lift(
76867715
callWithPointer {
@@ -23272,6 +23301,58 @@ public object FfiConverterTypeReceipt: FfiConverterRustBuffer<Receipt> {
2327223301

2327323302

2327423303

23304+
/**
23305+
* The config to use for HTTP requests by default in this client.
23306+
*/
23307+
data class RequestConfig (
23308+
/**
23309+
* Max number of retries.
23310+
*/
23311+
var `retryLimit`: kotlin.ULong?,
23312+
/**
23313+
* Timeout for a request in milliseconds.
23314+
*/
23315+
var `timeout`: kotlin.ULong?,
23316+
/**
23317+
* Max number of concurrent requests. No value means no limits.
23318+
*/
23319+
var `maxConcurrentRequests`: kotlin.ULong?,
23320+
/**
23321+
* Base delay between retries.
23322+
*/
23323+
var `retryTimeout`: kotlin.ULong?
23324+
) {
23325+
23326+
companion object
23327+
}
23328+
23329+
public object FfiConverterTypeRequestConfig: FfiConverterRustBuffer<RequestConfig> {
23330+
override fun read(buf: ByteBuffer): RequestConfig {
23331+
return RequestConfig(
23332+
FfiConverterOptionalULong.read(buf),
23333+
FfiConverterOptionalULong.read(buf),
23334+
FfiConverterOptionalULong.read(buf),
23335+
FfiConverterOptionalULong.read(buf),
23336+
)
23337+
}
23338+
23339+
override fun allocationSize(value: RequestConfig) = (
23340+
FfiConverterOptionalULong.allocationSize(value.`retryLimit`) +
23341+
FfiConverterOptionalULong.allocationSize(value.`timeout`) +
23342+
FfiConverterOptionalULong.allocationSize(value.`maxConcurrentRequests`) +
23343+
FfiConverterOptionalULong.allocationSize(value.`retryTimeout`)
23344+
)
23345+
23346+
override fun write(value: RequestConfig, buf: ByteBuffer) {
23347+
FfiConverterOptionalULong.write(value.`retryLimit`, buf)
23348+
FfiConverterOptionalULong.write(value.`timeout`, buf)
23349+
FfiConverterOptionalULong.write(value.`maxConcurrentRequests`, buf)
23350+
FfiConverterOptionalULong.write(value.`retryTimeout`, buf)
23351+
}
23352+
}
23353+
23354+
23355+
2327523356
data class RequiredState (
2327623357
var `key`: kotlin.String,
2327723358
var `value`: kotlin.String

0 commit comments

Comments
 (0)