use of com.joanzapata.iconify.fonts.MaterialModule 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();
}
use of com.joanzapata.iconify.fonts.MaterialModule in project TeamCityApp by vase4kin.
the class TeamCityApplication method onCreate.
@Override
public void onCreate() {
super.onCreate();
// #=============== Fabric ================#//
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
}
// #=============== Iconify ================#//
Iconify.with(new MaterialModule()).with(new MaterialCommunityModule()).with(new FontAwesomeModule());
// #=============== Dagger ================#//
// app injector init
// net injector init
mAppInjector = DaggerAppComponent.builder().appModule(new AppModule(this)).build();
// Get default url
String mBaseUrl = mAppInjector.sharedUserStorage().getActiveUser().getTeamcityUrl();
// Rest api init
if (!TextUtils.isEmpty(mBaseUrl)) {
buildRestApiInjectorWithBaseUrl(mBaseUrl);
}
}
Aggregations