feat: optionally disable Firebase Crashlytics in de Volkskrant and De Gelderlander #31
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #16. Implement according to the decision in #20. This should be an option that is off by default.
Feature description
Both apps force Crashlytics collection on at runtime, although the manifest default is off. Crash reports are less invasive than analytics, and they help DPG fix bugs. Still, some users want no telemetry at all. Offer it as an opt-in option of the tracking patch, not as default behaviour.
Findings
CrashlyticsStartupTask.onStartup()enables collection in release builds (pref"firebase_crashlytics_collection_enabled") and sets the user id.firebase_crashlytics_collection_enabled=false.g9d.f(TrackingStarter, anchor"com.kubusapp.tracking.TrackingStarter") callsFirebaseCrashlytics.setCrashlyticsCollectionEnabled(true).pe2sends logs to Crashlytics in release (MainApplication.G).Approach
FirebaseCrashlytics.setCrashlyticsCollectionEnabled(boolean)and force its argument to false. That works the same in both apps, so it can be a shareddpg/hook.CrashlyticsStartupTaskfor a direct pref write that bypasses the SDK call.Done when
crashlytics/firebase-settingsrequests with the option on.docs/apps/*.md.Midas Settings
This replaces the "opt-in patch option" idea: Crashlytics gets a Midas Settings toggle (#49) instead of a Morphe Manager option.
disable_crash_reports), category "Privacy", default off (crash reports stay on).setCrashlyticsCollectionEnabledhook. Takes effect after an app restart.Implemented and verified on device in
ab05dc1with the Midas Settings toggle disable_crash_reports.