Search in sources :

Example 1 with FirebaseCrash

use of com.google.firebase.crash.FirebaseCrash in project krypton-android by kryptco.

the class CrashReporting method startANRReporting.

public static synchronized void startANRReporting() {
    if (anrWatchDog == null) {
        anrWatchDog = new ANRWatchDog().setIgnoreDebugger(true).setReportMainThreadOnly();
        if (!BuildConfig.DEBUG) {
            anrWatchDog.setANRListener(FirebaseCrash::report);
        }
        anrWatchDog.start();
    }
}
Also used : FirebaseCrash(com.google.firebase.crash.FirebaseCrash) ANRWatchDog(com.github.anrwatchdog.ANRWatchDog)

Aggregations

ANRWatchDog (com.github.anrwatchdog.ANRWatchDog)1 FirebaseCrash (com.google.firebase.crash.FirebaseCrash)1