Created
May 1, 2020 20:08
-
-
Save tpakis/ebb40d86c73672b78499fe561c42ebda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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