Skip to content

Instantly share code, notes, and snippets.

@osama-raddad
Created March 10, 2019 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osama-raddad/bc1d46ff2c59f7bd180009c91b5395e3 to your computer and use it in GitHub Desktop.
Save osama-raddad/bc1d46ff2c59f7bd180009c91b5395e3 to your computer and use it in GitHub Desktop.
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