mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +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:
+1
@@ -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"
|
||||
|
||||
+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