Search in sources :

Example 1 with CrashReportWriter

use of de.danoeh.antennapod.error.CrashReportWriter in project AntennaPod by AntennaPod.

the class PodcastApp method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    Thread.setDefaultUncaughtExceptionHandler(new CrashReportWriter());
    RxJavaErrorHandlerSetup.setupRxJavaErrorHandler();
    if (BuildConfig.DEBUG) {
        StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder().detectLeakedSqlLiteObjects().penaltyLog().penaltyDropBox().detectActivityLeaks().detectLeakedClosableObjects().detectLeakedRegistrationObjects();
        StrictMode.setVmPolicy(builder.build());
    }
    singleton = this;
    ClientConfig.initialize(this);
    Iconify.with(new FontAwesomeModule());
    Iconify.with(new MaterialModule());
    SPAUtil.sendSPAppsQueryFeedsIntent(this);
    EventBus.builder().addIndex(new ApEventBusIndex()).addIndex(new ApCoreEventBusIndex()).logNoSubscriberMessages(false).sendNoSubscriberEvent(false).installDefaultEventBus();
}
Also used : CrashReportWriter(de.danoeh.antennapod.error.CrashReportWriter) StrictMode(android.os.StrictMode) ApCoreEventBusIndex(de.danoeh.antennapod.core.ApCoreEventBusIndex) FontAwesomeModule(com.joanzapata.iconify.fonts.FontAwesomeModule) MaterialModule(com.joanzapata.iconify.fonts.MaterialModule)

Aggregations

StrictMode (android.os.StrictMode)1 FontAwesomeModule (com.joanzapata.iconify.fonts.FontAwesomeModule)1 MaterialModule (com.joanzapata.iconify.fonts.MaterialModule)1 ApCoreEventBusIndex (de.danoeh.antennapod.core.ApCoreEventBusIndex)1 CrashReportWriter (de.danoeh.antennapod.error.CrashReportWriter)1