Skip to content

Commit

Permalink
Bump SDK version to 0.2.38 (matrix-rust-sdk to 57963dcf364a2aa9491b96…
Browse files Browse the repository at this point in the history
…42565da895332883bf)
  • Loading branch information
github-actions committed Aug 7, 2024
1 parent bd79563 commit ad5df3b
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/BuildVersionsSDK.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object BuildVersionsSDK {
const val majorVersion = 0
const val minorVersion = 2
const val patchVersion = 37
const val patchVersion = 38
}
Original file line number Diff line number Diff line change
Expand Up @@ -2106,6 +2106,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(








Expand Down Expand Up @@ -2315,6 +2317,8 @@ internal interface UniffiLib : Library {
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_proxy(`ptr`: Pointer,`url`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_request_config(`ptr`: Pointer,`config`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_requires_sliding_sync(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_server_name(`ptr`: Pointer,`serverName`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
Expand Down Expand Up @@ -3383,6 +3387,8 @@ internal interface UniffiLib : Library {
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_proxy(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_request_config(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_requires_sliding_sync(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_server_name(
Expand Down Expand Up @@ -4285,6 +4291,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_proxy() != 5659.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_request_config() != 58783.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_requires_sliding_sync() != 18165.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -7363,6 +7372,11 @@ public interface ClientBuilderInterface {

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

/**
* Add a default request config to this client.
*/
fun `requestConfig`(`config`: RequestConfig): ClientBuilder

fun `requiresSlidingSync`(): ClientBuilder

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



/**
* Add a default request config to this client.
*/override fun `requestConfig`(`config`: RequestConfig): ClientBuilder {
return FfiConverterTypeClientBuilder.lift(
callWithPointer {
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_clientbuilder_request_config(
it, FfiConverterTypeRequestConfig.lower(`config`),_status)
}
}
)
}


override fun `requiresSlidingSync`(): ClientBuilder {
return FfiConverterTypeClientBuilder.lift(
callWithPointer {
Expand Down Expand Up @@ -23272,6 +23301,58 @@ public object FfiConverterTypeReceipt: FfiConverterRustBuffer<Receipt> {



/**
* The config to use for HTTP requests by default in this client.
*/
data class RequestConfig (
/**
* Max number of retries.
*/
var `retryLimit`: kotlin.ULong?,
/**
* Timeout for a request in milliseconds.
*/
var `timeout`: kotlin.ULong?,
/**
* Max number of concurrent requests. No value means no limits.
*/
var `maxConcurrentRequests`: kotlin.ULong?,
/**
* Base delay between retries.
*/
var `retryTimeout`: kotlin.ULong?
) {

companion object
}

public object FfiConverterTypeRequestConfig: FfiConverterRustBuffer<RequestConfig> {
override fun read(buf: ByteBuffer): RequestConfig {
return RequestConfig(
FfiConverterOptionalULong.read(buf),
FfiConverterOptionalULong.read(buf),
FfiConverterOptionalULong.read(buf),
FfiConverterOptionalULong.read(buf),
)
}

override fun allocationSize(value: RequestConfig) = (
FfiConverterOptionalULong.allocationSize(value.`retryLimit`) +
FfiConverterOptionalULong.allocationSize(value.`timeout`) +
FfiConverterOptionalULong.allocationSize(value.`maxConcurrentRequests`) +
FfiConverterOptionalULong.allocationSize(value.`retryTimeout`)
)

override fun write(value: RequestConfig, buf: ByteBuffer) {
FfiConverterOptionalULong.write(value.`retryLimit`, buf)
FfiConverterOptionalULong.write(value.`timeout`, buf)
FfiConverterOptionalULong.write(value.`maxConcurrentRequests`, buf)
FfiConverterOptionalULong.write(value.`retryTimeout`, buf)
}
}



data class RequiredState (
var `key`: kotlin.String,
var `value`: kotlin.String
Expand Down

0 comments on commit ad5df3b

Please sign in to comment.