feat(analytics): expand DataDog RUM integration and align with iOS parity (#4970)

This commit is contained in:
James Rich 2026-04-01 15:27:28 -05:00 committed by GitHub
parent e249461e3c
commit 0167063497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 109 additions and 34 deletions

View file

@ -44,8 +44,8 @@ class AnalyticsPrefsImpl(
override val analyticsAllowed: StateFlow<Boolean> =
analyticsDataStore.data
.map { it[KEY_ANALYTICS_ALLOWED_PREF] ?: false }
.stateIn(scope, SharingStarted.Eagerly, false)
.map { it[KEY_ANALYTICS_ALLOWED_PREF] ?: true }
.stateIn(scope, SharingStarted.Eagerly, true)
override fun setAnalyticsAllowed(allowed: Boolean) {
scope.launch { analyticsDataStore.edit { prefs -> prefs[KEY_ANALYTICS_ALLOWED_PREF] = allowed } }