ADFA-4533: wire GlitchTip (Sentry SDK) crash reporting (DSN-only, con…#165
Merged
Merged
Conversation
added 2 commits
July 8, 2026 23:27
…sent-gated)
- Add io.sentry:sentry-android-core:8.29.0 (and mavenCentral to allprojects repos).
- Inject the DSN per build type via a ${sentryDsn} manifest placeholder from
-PsentryDsn{Debug,Release} or $SENTRY_DSN_{DEBUG,RELEASE}; empty default keeps the SDK inert.
- Manifest: io.sentry.dsn=${sentryDsn}, io.sentry.auto-init=false.
- Init Sentry in IIABApplication only when AnalyticsConsent is enabled (same opt-in as
analytics; send-default-pii stays off). Placed before the uncaught-exception handler so
K2GoUncaughtExceptionHandler wraps it and the local crash store still runs.
- CI: pass SENTRY_DSN_RELEASE to the release build and the Firebase distribution build
(both run assembleRelease; release is not minified, so stacktraces are readable).
No Gradle plugin / mapping upload / SENTRY_URL yet (follow-up). Needs repo secret
SENTRY_DSN_RELEASE (and SENTRY_DSN_DEBUG for local debug builds).
…t ON) Decouple crash/error reporting from usage-analytics consent. Add CrashReportConsent (same SharedPreferences-backed pattern as AnalyticsConsent, separate key, default ON) and have IIABApplication gate Sentry init on it instead of AnalyticsConsent. Error reports are operational (not behavioural telemetry) and carry no PII (send-default-pii=false), so they can follow a different policy; flipping the default in CrashReportConsent is the single knob if administration later makes them opt-in. A user-facing toggle in Settings can be added as a follow-up (UI + localized strings).
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.
…sent-gated)
No Gradle plugin / mapping upload / SENTRY_URL yet (follow-up). Needs repo secret SENTRY_DSN_RELEASE (and SENTRY_DSN_DEBUG for local debug builds).