mirror of
https://github.com/stoatchat/for-android.git
synced 2026-07-10 15:53:26 -04:00
[PR #61] Make Sentry completely optional #62
Reference in New Issue
Block a user
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?
📋 Pull Request Information
Original PR: https://github.com/stoatchat/for-android/pull/61
Author: @Misofist
Created: 2/14/2026
Status: 🔄 Open
Base:
dev← Head:optional-sentry📝 Commits (1)
fc2bce4Make Sentry completely optional📊 Changes
2 files changed (+23 additions, -12 deletions)
View changed files
📝
app/build.gradle.kts(+18 -9)📝
app/src/main/java/chat/stoat/activities/MainActivity.kt(+5 -3)📄 Description
This PR fully disables Sentry if the DSN option is left empty both in stoatbuild.properties and in the RVX_SENTRY_DSN environment variable.
Not only does it prevent Sentry from being Init'd at runtime, but it also disables the Sentry Gradle plugin, since otherwise the plugin throws errors during Gradle syncs.
Sentry is only really necessary if you're shipping an app, not just developing locally. Making Sentry optional should reduce the barrier for entry to new devs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.