Search in sources :

Example 1 with MaterialCommunityModule

use of com.joanzapata.iconify.fonts.MaterialCommunityModule 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);
    }
}
Also used : AppModule(com.github.vase4kin.teamcityapp.dagger.modules.AppModule) FontAwesomeModule(com.joanzapata.iconify.fonts.FontAwesomeModule) MaterialModule(com.joanzapata.iconify.fonts.MaterialModule) Crashlytics(com.crashlytics.android.Crashlytics) MaterialCommunityModule(com.joanzapata.iconify.fonts.MaterialCommunityModule)

Aggregations

Crashlytics (com.crashlytics.android.Crashlytics)1 AppModule (com.github.vase4kin.teamcityapp.dagger.modules.AppModule)1 FontAwesomeModule (com.joanzapata.iconify.fonts.FontAwesomeModule)1 MaterialCommunityModule (com.joanzapata.iconify.fonts.MaterialCommunityModule)1 MaterialModule (com.joanzapata.iconify.fonts.MaterialModule)1