Skip to content

Commit 36e7d25

Browse files
author
github-actions
committed
Bump SDK version to 25.04.8 (matrix-rust-sdk to 5753ca3a64090469feb8d99de9b2cf6baffeeeca)
1 parent 1b662b0 commit 36e7d25

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

Diff for: buildSrc/src/main/kotlin/BuildVersionsSDK.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 25
33
const val minorVersion = 4
4-
const val patchVersion = 7
4+
const val patchVersion = 8
55
}

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

+41
Original file line numberDiff line numberDiff line change
@@ -2293,6 +2293,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
22932293

22942294

22952295

2296+
2297+
22962298

22972299

22982300

@@ -2549,6 +2551,8 @@ internal interface UniffiLib : Library {
25492551
): Pointer
25502552
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_sliding_sync_version_builder(`ptr`: Pointer,`versionBuilder`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
25512553
): Pointer
2554+
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_system_is_memory_constrained(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2555+
): Pointer
25522556
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_use_event_cache_persistent_storage(`ptr`: Pointer,`value`: Byte,uniffi_out_err: UniffiRustCallStatus,
25532557
): Pointer
25542558
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_user_agent(`ptr`: Pointer,`userAgent`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
@@ -3741,6 +3745,8 @@ internal interface UniffiLib : Library {
37413745
): Short
37423746
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_sliding_sync_version_builder(
37433747
): Short
3748+
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_system_is_memory_constrained(
3749+
): Short
37443750
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_use_event_cache_persistent_storage(
37453751
): Short
37463752
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_user_agent(
@@ -4777,6 +4783,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
47774783
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_sliding_sync_version_builder() != 39381.toShort()) {
47784784
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
47794785
}
4786+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_system_is_memory_constrained() != 6898.toShort()) {
4787+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4788+
}
47804789
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_use_event_cache_persistent_storage() != 58836.toShort()) {
47814790
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
47824791
}
@@ -8568,6 +8577,17 @@ public interface ClientBuilderInterface {
85688577

85698578
fun `slidingSyncVersionBuilder`(`versionBuilder`: SlidingSyncVersionBuilder): ClientBuilder
85708579

8580+
/**
8581+
* Tell the client that the system is memory constrained, like in a push
8582+
* notification process for example.
8583+
*
8584+
* So far, at the time of writing (2025-04-07), it changes the defaults of
8585+
* [`SqliteStoreConfig`], so one might not need to call
8586+
* [`ClientBuilder::session_cache_size`] and siblings for example. Please
8587+
* check [`SqliteStoreConfig::with_low_memory_config`].
8588+
*/
8589+
fun `systemIsMemoryConstrained`(): ClientBuilder
8590+
85718591
/**
85728592
* Whether to use the event cache persistent storage or not.
85738593
*
@@ -9081,6 +9101,27 @@ open class ClientBuilder: Disposable, AutoCloseable, ClientBuilderInterface {
90819101

90829102

90839103

9104+
/**
9105+
* Tell the client that the system is memory constrained, like in a push
9106+
* notification process for example.
9107+
*
9108+
* So far, at the time of writing (2025-04-07), it changes the defaults of
9109+
* [`SqliteStoreConfig`], so one might not need to call
9110+
* [`ClientBuilder::session_cache_size`] and siblings for example. Please
9111+
* check [`SqliteStoreConfig::with_low_memory_config`].
9112+
*/override fun `systemIsMemoryConstrained`(): ClientBuilder {
9113+
return FfiConverterTypeClientBuilder.lift(
9114+
callWithPointer {
9115+
uniffiRustCall() { _status ->
9116+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_clientbuilder_system_is_memory_constrained(
9117+
it, _status)
9118+
}
9119+
}
9120+
)
9121+
}
9122+
9123+
9124+
90849125
/**
90859126
* Whether to use the event cache persistent storage or not.
90869127
*

0 commit comments

Comments
 (0)