package fr.guddy.android_modular_reloaded.second;

import android.app.Activity;
import android.support.multidex.MultiDexApplication;

import javax.inject.Inject;

import dagger.android.AndroidInjector;
import dagger.android.DispatchingAndroidInjector;
import dagger.android.HasActivityInjector;
import fr.guddy.android_modular_reloaded.second.di.ComponentApp;
import fr.guddy.android_modular_reloaded.second.di.DaggerComponentApp;

public class App extends MultiDexApplication implements HasActivityInjector {

    //region Injected fields
    @Inject
    public DispatchingAndroidInjector<Activity> dispatchingActivityInjector;
    //endregion

    //region Fields
    private ComponentApp mComponentApp;
    //endregion

    //region Lifecycle
    @Override
    public void onCreate() {
        super.onCreate();
        buildComponent();
        mComponentApp.inject(this);
    }
    //endregion

    //region DI setup
    private void buildComponent() {
        mComponentApp = DaggerComponentApp.builder()
                .application(this)
                .build();
    }
    //endregion

    //region HasActivityInjector
    @Override
    public AndroidInjector<Activity> activityInjector() {
        return dispatchingActivityInjector;
    }
    //endregion
}

@@ -292,73 +292,8 @@
 or;%0A
-import fr.guddy.android_modular_reloaded.second.di.ComponentApp;%0A
 impo
@@ -578,85 +578,8 @@
 on%0A%0A
-    //region Fields%0A    private ComponentApp mComponentApp;%0A    //endregion%0A%0A
     
@@ -677,167 +677,8 @@
     
- buildComponent();%0A        mComponentApp.inject(this);%0A    %7D%0A    //endregion%0A%0A    //region DI setup%0A    private void buildComponent() %7B%0A        mComponentApp =
  Dag
@@ -762,16 +762,46 @@
 .build()
+%0A                .inject(this)
 ;%0A    %7D%0A

remove unnecessary code