Search in sources :

Example 1 with ApplicationModule

use of org.fundacionparaguaya.advisorapp.injection.ApplicationModule 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));
}
Also used : DiskCacheConfig(com.facebook.cache.disk.DiskCacheConfig) ImagePipelineConfig(com.facebook.imagepipeline.core.ImagePipelineConfig) DatabaseModule(org.fundacionparaguaya.advisorapp.injection.DatabaseModule) JobCreator(org.fundacionparaguaya.advisorapp.jobs.JobCreator) ApplicationModule(org.fundacionparaguaya.advisorapp.injection.ApplicationModule)

Aggregations

DiskCacheConfig (com.facebook.cache.disk.DiskCacheConfig)1 ImagePipelineConfig (com.facebook.imagepipeline.core.ImagePipelineConfig)1 ApplicationModule (org.fundacionparaguaya.advisorapp.injection.ApplicationModule)1 DatabaseModule (org.fundacionparaguaya.advisorapp.injection.DatabaseModule)1 JobCreator (org.fundacionparaguaya.advisorapp.jobs.JobCreator)1