Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val core = CrashlyticsCore.Builder()
- .build()
- Fabric.with(
- Fabric.Builder(contextProvider.invoke()).kits(
- Crashlytics.Builder()
- .core(core)
- .build()
- ).initializationCallback(object : InitializationCallback<Fabric> {
- override fun success(fabric: Fabric) {
- var mDefaultUEH = Thread.getDefaultUncaughtExceptionHandler()
- Thread.setDefaultUncaughtExceptionHandler { t, e ->
- Log.e("CrashLogger","Excpetion",e)
- mDefaultUEH.uncaughtException(t, e)
- }
- }
- override fun failure(e: Exception) {
- Log.e("CrashLogger", "Error during initialization ", e)
- }
- }
- ).build()
- )
Add Comment
Please, Sign In to add comment