mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
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:
+19
-4
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user