Skip to content

Instantly share code, notes, and snippets.

@tpakis
Created May 1, 2020 20:08
Show Gist options
  • Save tpakis/ebb40d86c73672b78499fe561c42ebda to your computer and use it in GitHub Desktop.
Save tpakis/ebb40d86c73672b78499fe561c42ebda to your computer and use it in GitHub Desktop.
class App: Application() {
override fun onCreate() {
super.onCreate()
setupChuckerErrors()
}
private fun setupChuckerErrors() {
if (BuildConfig.DEBUG) {
val systemHandler = Thread.getDefaultUncaughtExceptionHandler()
Thread.setDefaultUncaughtExceptionHandler(CustomCrashHandler(systemHandler, this))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment