// Path: AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginComponent.java
// @Subcomponent(modules = LoginModule.class)
// public interface LoginComponent {
//     LoginActivity inject(LoginActivity loginActivity);
// }
// 
// Path: AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginModule.java
// @Module
// public class LoginModule {
//     private final LoginView loginView;
// 
//     public LoginModule(LoginView loginView) {
//         this.loginView = loginView;
//     }
// 
//     @Provides
//     LoginView provideLoginView() {
//         return loginView;
//     }
// 
// 
//     @Provides
//     LoginPresenter provideLoginPresenter(ApiManager apiManager, PreferencesManager preferencesManager) {
//         return new LoginPresenter(loginView,apiManager,preferencesManager);
//     }
// }


import com.zhy.authproject.module.login.LoginComponent;
import com.zhy.authproject.module.login.LoginModule;
import javax.inject.Singleton;
import dagger.Component;
package com.zhy.authproject.di;




/**
 * Created by zhanghaoye on 10/24/16.
 */
@Singleton
@Component(modules = {AppModule.class, ApiModule.class})
public interface AppComponent {
// Path: AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginComponent.java
// @Subcomponent(modules = LoginModule.class)
// public interface LoginComponent {
//     LoginActivity inject(LoginActivity loginActivity);
// }
// 
// Path: AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginModule.java
// @Module
// public class LoginModule {
//     private final LoginView loginView;
// 
//     public LoginModule(LoginView loginView) {
//         this.loginView = loginView;
//     }
// 
//     @Provides
//     LoginView provideLoginView() {
//         return loginView;
//     }
// 
// 
//     @Provides
//     LoginPresenter provideLoginPresenter(ApiManager apiManager, PreferencesManager preferencesManager) {
//         return new LoginPresenter(loginView,apiManager,preferencesManager);
//     }
// }


// Path: AuthProject/app/src/main/java/com/zhy/authproject/di/AppComponent.java
import com.zhy.authproject.module.login.LoginComponent;
import com.zhy.authproject.module.login.LoginModule;
import javax.inject.Singleton;
import dagger.Component;

package com.zhy.authproject.di;




/**
 * Created by zhanghaoye on 10/24/16.
 */
@Singleton
@Component(modules = {AppModule.class, ApiModule.class})
public interface AppComponent {
    LoginComponent plus(LoginModule loginModule);