Repository navigation
K2GO-401 feat(settings): add a "Send crash reports" opt-in toggle - #572
Merged
Merged
Conversation
Crash reports (Sentry -> self-hosted GlitchTip) were gated by CrashReportConsent (default on) with no user control. Add a toggle in Settings > About, next to "Share usage statistics", bound to CrashReportConsent. Sentry is FOSS and unconditional, so the toggle always shows (unlike the analytics one, which is gated by ANALYTICS_ENABLED). Pref-only: DiskGuard honors the flag per capture (immediate); the startup-gated Sentry init applies the change on the next launch. New string k2go_settings_crash_reports in all locales (machine-generated, pending human review). Step toward F-Droid-friendly opt-in telemetry.
Read the unset crash-report opt-in default from BuildConfig.CRASH_REPORTS_DEFAULT_ON instead of a hardcoded true. Conventional builds stay ON. The F-Droid recipe flips this one value to false so that build ships crash reporting OFF by default, which F-Droid requires for opt-in telemetry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What:
Why:
Crash reporting (Sentry to self-hosted GlitchTip) is FOSS. F-Droid requires such
telemetry to be user-controllable and OFF by default in that build. The toggle gives
the user control; the build flag lets the F-Droid recipe ship crash reporting OFF
while conventional builds keep it ON.
Behavior:
is OFF until the user opts in.
startup-gated Sentry init applies on the next launch. A mid-session Sentry re-init is
avoided on purpose: it would disturb the uncaught-handler order IIABApplication sets
at startup.
gated by ANALYTICS_ENABLED).
Verification:
Compiles green. Device-test of the toggle (show, flip, persist) is pending before merge.