use of org.fundacionparaguaya.advisorapp.injection.DatabaseModule in project ps-advisor-app by wpi-poverty-stoplight.
the class AdvisorApplication method onCreate.
@Override
public void onCreate() {
super.onCreate();
DiskCacheConfig indicatorCacheConfig = DiskCacheConfig.newBuilder(this).setMaxCacheSize(INDICATOR_CACHE_SIZE).build();
ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this).setSmallImageDiskCacheConfig(indicatorCacheConfig).build();
Fresco.initialize(this, config);
applicationComponent = DaggerApplicationComponent.builder().applicationModule(new ApplicationModule(this)).databaseModule(new DatabaseModule(this)).build();
applicationComponent.inject(this);
mMerlin.bind();
new Instabug.Builder(this, BuildConfig.INSTABUG_API_KEY_STRING).setInvocationEvent(InstabugInvocationEvent.SHAKE).build();
MixpanelHelper.identify(getApplicationContext());
JobManager.create(this).addJobCreator(new JobCreator(this));
}
Aggregations