joshdholtz / Sentry-Android

[Deprecated] Use official "raven-java" library
https://github.com/getsentry/sentry-java
MIT License
180 stars 48 forks source link

Disable on Debug #112

Closed fab1an closed 6 years ago

fab1an commented 7 years ago

Is there a way to prevent Sentry-Android from anything when BuildConfig.DEBUG == true?

edenman commented 7 years ago

@fab1an late to the party but fwiw, I just have a MyApp.setupSentry() method that gets called during MyApp.onCreate() and I just override it in MyDebugApp.setupSentry() and don't call super.

joshdholtz commented 7 years ago

@fab1an I think there may be a word missing your question 😇 What are you looking to do exactly?