// Path: dagger2-rxjava/src/main/java/com/tonilopezmr/dagger2rxjava/di/MainComponent.java
// @Singleton
// @Component(modules = MainModule.class) public interface MainComponent {
// 
//     void inject(MainActivity activity);
// 
//     @Named("executorThread") Scheduler executorThread();
//     @Named("mainThread") Scheduler mainThread();
// }
// 
// Path: dagger2-rxjava/src/main/java/com/tonilopezmr/dagger2rxjava/di/MainModule.java
// @Module public class MainModule {
// 
//     @Provides @Singleton public PersonRepositoryImp providePersonRepository(){
//         return new PersonRepositoryImp();
//     }
// 
//     @Provides @Named("executorThread") public Scheduler provideExecutorThread(){
//         return Schedulers.newThread();
//     }
// 
//     @Provides @Named("mainThread") public Scheduler provideMainThread(){
//         return AndroidSchedulers.mainThread();
//     }
// }


import android.app.Application;
import android.support.annotation.VisibleForTesting;
import com.tonilopezmr.dagger2rxjava.di.DaggerMainComponent;
import com.tonilopezmr.dagger2rxjava.di.MainComponent;
import com.tonilopezmr.dagger2rxjava.di.MainModule;
package com.tonilopezmr.dagger2rxjava;



/**
 * @author Antonio López.
 */
public class PersonApplication extends Application{

    private MainComponent mainComponent;

    @Override public void onCreate() {
        super.onCreate();
        mainComponent = DaggerMainComponent.builder()
// Path: dagger2-rxjava/src/main/java/com/tonilopezmr/dagger2rxjava/di/MainComponent.java
// @Singleton
// @Component(modules = MainModule.class) public interface MainComponent {
// 
//     void inject(MainActivity activity);
// 
//     @Named("executorThread") Scheduler executorThread();
//     @Named("mainThread") Scheduler mainThread();
// }
// 
// Path: dagger2-rxjava/src/main/java/com/tonilopezmr/dagger2rxjava/di/MainModule.java
// @Module public class MainModule {
// 
//     @Provides @Singleton public PersonRepositoryImp providePersonRepository(){
//         return new PersonRepositoryImp();
//     }
// 
//     @Provides @Named("executorThread") public Scheduler provideExecutorThread(){
//         return Schedulers.newThread();
//     }
// 
//     @Provides @Named("mainThread") public Scheduler provideMainThread(){
//         return AndroidSchedulers.mainThread();
//     }
// }


// Path: dagger2-rxjava/src/main/java/com/tonilopezmr/dagger2rxjava/PersonApplication.java
import android.app.Application;
import android.support.annotation.VisibleForTesting;
import com.tonilopezmr.dagger2rxjava.di.DaggerMainComponent;
import com.tonilopezmr.dagger2rxjava.di.MainComponent;
import com.tonilopezmr.dagger2rxjava.di.MainModule;

package com.tonilopezmr.dagger2rxjava;



/**
 * @author Antonio López.
 */
public class PersonApplication extends Application{

    private MainComponent mainComponent;

    @Override public void onCreate() {
        super.onCreate();
        mainComponent = DaggerMainComponent.builder()
                .mainModule(new MainModule())