Search in sources :

Example 1 with AppModule

use of com.wingjay.jianshi.di.AppModule in project jianshi by wingjay.

the class JianShiApplication method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    appComponent = DaggerAppComponent.builder().appModule(new AppModule(JianShiApplication.this)).build();
    final Fabric fabric = new Fabric.Builder(this).kits(new Crashlytics()).debuggable(true).build();
    Fabric.with(fabric);
    Stetho.initializeWithDefaults(this);
    instance = this;
    FlowManager.init(new FlowConfig.Builder(this).openDatabasesOnInit(true).build());
    initLog();
    CalligraphyConfig.initDefault(new CalligraphyConfig.Builder().setDefaultFontPath("fonts/jianshi_default.otf").setFontAttrId(R.attr.fontPath).build());
}
Also used : FlowConfig(com.raizlabs.android.dbflow.config.FlowConfig) AppModule(com.wingjay.jianshi.di.AppModule) Fabric(io.fabric.sdk.android.Fabric) Crashlytics(com.crashlytics.android.Crashlytics)

Aggregations

Crashlytics (com.crashlytics.android.Crashlytics)1 FlowConfig (com.raizlabs.android.dbflow.config.FlowConfig)1 AppModule (com.wingjay.jianshi.di.AppModule)1 Fabric (io.fabric.sdk.android.Fabric)1