Commit 07cef441 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Show a warning when the sentry DSN is not set

parent 19bfd047
Pipeline #5934 passed with stage
in 3 minutes and 3 seconds
......@@ -170,6 +170,11 @@ class MainActivity : NavigationDrawerActivity() {
registerLocalReceiver(listOf(BROADCAST_RELOAD_MENU), true) {
reloadMenuItems()
}
@Suppress("ConstantConditionIf")
if(!BuildConfig.DEBUG && BuildConfig.SENTRY_DSN == "dummy") {
Toast.makeText(this, "Warning, Sentry DSN is not valid", Toast.LENGTH_LONG).show()
}
}
override fun onDestroy() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment