Skip to content

ADFA-4533: wire GlitchTip (Sentry SDK) crash reporting (DSN-only, con…#165

Merged
luisguzman-adfa merged 2 commits into
mainfrom
feat/ADFA-4533-glitchtip-crash-reporting
Jul 9, 2026
Merged

ADFA-4533: wire GlitchTip (Sentry SDK) crash reporting (DSN-only, con…#165
luisguzman-adfa merged 2 commits into
mainfrom
feat/ADFA-4533-glitchtip-crash-reporting

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

…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).

AppDevForAll 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).
@luisguzman-adfa luisguzman-adfa merged commit d57fabc into main Jul 9, 2026
1 check passed
@luisguzman-adfa luisguzman-adfa deleted the feat/ADFA-4533-glitchtip-crash-reporting branch July 9, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant