Update Matrix Rust SDK to 26.10.14-nightly (#7930)

* Update Matrix Rust SDK to 26.10.14-nightly

* `withSearchIndexStore` now uses `key` instead of passphrase

* Fix `RustMatrixClient` now returning `searchIndex` size too

---------

Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
ElementBot
2026-10-15 15:47:56 +01:00
committed by GitHub
parent 287001f9aa
commit 4ebcf960ce
9 changed files with 45 additions and 9 deletions
@@ -14,6 +14,7 @@ object AnalyticsUserData {
const val EVENT_CACHE_SIZE = "event_cache_size"
const val CRYPTO_STORE_SIZE = "crypto_store_size"
const val MEDIA_STORE_SIZE = "media_store_size"
const val SEARCH_INDEX_SIZE = "search_index_size"
const val FIRST_SYNC_STATE = "first_sync_state"
const val TIMELINE_ITEM_COUNT = "timeline_item_count"
@@ -142,7 +142,13 @@ class SentryAnalyticsProviderTest : RobolectricTest() {
createSentryAnalyticsProvider(
getDatabaseSizesUseCase = GetDatabaseSizesUseCase {
Result.success(
SdkStoreSizes(stateStore = 10.megaBytes, eventCacheStore = 11.megaBytes, mediaStore = 12.megaBytes, cryptoStore = 13.megaBytes)
SdkStoreSizes(
stateStore = 10.megaBytes,
eventCacheStore = 11.megaBytes,
mediaStore = 12.megaBytes,
cryptoStore = 13.megaBytes,
searchIndex = 14.megaBytes,
)
)
},
appNavigationStateService = FakeAppNavigationStateService(
@@ -167,6 +173,9 @@ class SentryAnalyticsProviderTest : RobolectricTest() {
assertThat(result.getExtra(AnalyticsUserData.EVENT_CACHE_SIZE)).isEqualTo(11)
assertThat(result.getExtra(AnalyticsUserData.MEDIA_STORE_SIZE)).isEqualTo(12)
assertThat(result.getExtra(AnalyticsUserData.CRYPTO_STORE_SIZE)).isEqualTo(13)
// The search index size won't be included
assertThat(result.getExtra(AnalyticsUserData.SEARCH_INDEX_SIZE)).isNull()
}
}
@@ -175,7 +184,13 @@ class SentryAnalyticsProviderTest : RobolectricTest() {
createSentryAnalyticsProvider(
getDatabaseSizesUseCase = GetDatabaseSizesUseCase {
Result.success(
SdkStoreSizes(stateStore = 10.megaBytes, eventCacheStore = 11.megaBytes, mediaStore = 12.megaBytes, cryptoStore = 13.megaBytes)
SdkStoreSizes(
stateStore = 10.megaBytes,
eventCacheStore = 11.megaBytes,
mediaStore = 12.megaBytes,
cryptoStore = 13.megaBytes,
searchIndex = 14.megaBytes,
)
)
},
appNavigationStateService = FakeAppNavigationStateService(
@@ -196,7 +211,7 @@ class SentryAnalyticsProviderTest : RobolectricTest() {
createSentryAnalyticsProvider(
getDatabaseSizesUseCase = GetDatabaseSizesUseCase {
Result.success(
SdkStoreSizes(stateStore = null, eventCacheStore = null, mediaStore = null, cryptoStore = null)
SdkStoreSizes(stateStore = null, eventCacheStore = null, mediaStore = null, cryptoStore = null, searchIndex = null)
)
},
appNavigationStateService = FakeAppNavigationStateService(
@@ -216,7 +231,7 @@ class SentryAnalyticsProviderTest : RobolectricTest() {
private fun createSentryAnalyticsProvider(
sentryDsn: SentryDsn? = SentryDsn("https://1234@sentry.com/a"),
buildMeta: BuildMeta = aBuildMeta(),
getDatabaseSizesUseCase: GetDatabaseSizesUseCase = GetDatabaseSizesUseCase { Result.success(SdkStoreSizes(null, null, null, null)) },
getDatabaseSizesUseCase: GetDatabaseSizesUseCase = GetDatabaseSizesUseCase { Result.success(SdkStoreSizes(null, null, null, null, null)) },
appNavigationStateService: FakeAppNavigationStateService = FakeAppNavigationStateService(
initialAppNavigationState = AppNavigationState(NavigationState.Session("owner", A_SESSION_ID), isInForeground = true)
)