Created
March 10, 2019 17:26
-
-
Save osama-raddad/bc1d46ff2c59f7bd180009c91b5395e3 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
FireCrasher.install(this, object : CrashListener() { | |
override fun onCrash(throwable: Throwable) { | |
evaluate { activity, crashLevel -> | |
recover { | |
Toast.makeText(this@App, "recover", Toast.LENGTH_LONG).show() | |
} | |
} | |
//you need to add your crash reporting tool here | |
//Ex: Crashlytics.logException(throwable); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment