mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat(analytics): expand DataDog RUM integration and align with iOS parity (#4970)
This commit is contained in:
parent
e249461e3c
commit
0167063497
10 changed files with 109 additions and 34 deletions
|
|
@ -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 } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue