Skip to content

Commit fc140e0

Browse files
mokagioclaude
andcommitted
Stop the Sentry SDK installing itself
Every build type now carries the production DSN as a compile-time constant. Auto-installation would have the SDK initialize itself from that constant, bypassing `SimplenoteCrashLoggingDataProvider` — the one place that decides whether crash logging is on, and the reason debug builds stay out of Sentry. This is also the condition wzieba's review answer rests on: how the DSN is provided does not matter as long as auto-installation is off. `wpandroid` and `wcandroid` both disable it. --- Generated with the help of Claude Code, https://claude.ai/code Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>
1 parent e1d4922 commit fc140e0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Simplenote/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ sentry {
7575
org = "a8c"
7676
projectName = "simplenote-android"
7777
authToken = providers.environmentVariable("SENTRY_AUTH_TOKEN").orNull
78+
// The DSN is now a compile-time constant in every build type, so the SDK must not
79+
// start itself — initialization stays with SimplenoteCrashLoggingDataProvider, which
80+
// opts debug builds out.
81+
autoInstallation.enabled = false
7882
}
7983

8084
buildscript {

0 commit comments

Comments
 (0)