// Path: app/src/main/java/com/ragdroid/dahaka/activity/login/LoginActivity.java
// public class LoginActivity extends BaseActivity<LoginContract.Presenter> implements LoginContract.View {
// 
//     private ActivityLoginBinding binding;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         binding = DataBindingUtil.setContentView(this, R.layout.activity_login);
//         super.onCreate(savedInstanceState);
//         Toolbar toolbar = findViewById(R.id.toolbar);
//         setSupportActionBar(toolbar);
//         toolbar.setTitle(R.string.title_activity_login);
//         binding.setPresenter(getPresenter());
//     }
// 
//     @Override
//     public void showHome() {
//         Intent intent = new Intent(this, HomeActivity.class);
//         startActivity(intent);
//         finish();
//     }
// 
//     @Override
//     public void setModel(LoginModel loginModel) {
//         binding.setModel(loginModel);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/activity/login/LoginModule.java
// @Module
// public abstract class LoginModule {
// 
//     @Binds
//     public abstract LoginContract.Presenter provideLoginPresenter(LoginPresenter loginPresenter);
// 
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/user/UserComponent.java
// @UserScope
// @Subcomponent(modules = {UserBindingModule.class, AndroidSupportInjectionModule.class})
// public interface UserComponent extends AndroidInjector<DaggerApplication> {
//     void inject(UserManager userManager);
// 
// 
//     @Subcomponent.Builder
//     interface Builder {
// 
//         UserComponent build();
//         @BindsInstance
//         Builder pokeMon(Pokemon pokemon);
//     }
// 
// }


import com.ragdroid.dahaka.activity.login.LoginActivity;
import com.ragdroid.dahaka.activity.login.LoginModule;
import com.ragdroid.dahaka.user.UserComponent;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
package com.ragdroid.dahaka.activity;



/**
 * Created by garimajain on 20/08/17.
 */
@Module(subcomponents = UserComponent.class)
public abstract class AppBindingModule {

    @ContributesAndroidInjector(modules = LoginModule.class)
    @ActivityScope
// Path: app/src/main/java/com/ragdroid/dahaka/activity/login/LoginActivity.java
// public class LoginActivity extends BaseActivity<LoginContract.Presenter> implements LoginContract.View {
// 
//     private ActivityLoginBinding binding;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         binding = DataBindingUtil.setContentView(this, R.layout.activity_login);
//         super.onCreate(savedInstanceState);
//         Toolbar toolbar = findViewById(R.id.toolbar);
//         setSupportActionBar(toolbar);
//         toolbar.setTitle(R.string.title_activity_login);
//         binding.setPresenter(getPresenter());
//     }
// 
//     @Override
//     public void showHome() {
//         Intent intent = new Intent(this, HomeActivity.class);
//         startActivity(intent);
//         finish();
//     }
// 
//     @Override
//     public void setModel(LoginModel loginModel) {
//         binding.setModel(loginModel);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/activity/login/LoginModule.java
// @Module
// public abstract class LoginModule {
// 
//     @Binds
//     public abstract LoginContract.Presenter provideLoginPresenter(LoginPresenter loginPresenter);
// 
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/user/UserComponent.java
// @UserScope
// @Subcomponent(modules = {UserBindingModule.class, AndroidSupportInjectionModule.class})
// public interface UserComponent extends AndroidInjector<DaggerApplication> {
//     void inject(UserManager userManager);
// 
// 
//     @Subcomponent.Builder
//     interface Builder {
// 
//         UserComponent build();
//         @BindsInstance
//         Builder pokeMon(Pokemon pokemon);
//     }
// 
// }


// Path: app/src/main/java/com/ragdroid/dahaka/activity/AppBindingModule.java
import com.ragdroid.dahaka.activity.login.LoginActivity;
import com.ragdroid.dahaka.activity.login.LoginModule;
import com.ragdroid.dahaka.user.UserComponent;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;

package com.ragdroid.dahaka.activity;



/**
 * Created by garimajain on 20/08/17.
 */
@Module(subcomponents = UserComponent.class)
public abstract class AppBindingModule {

    @ContributesAndroidInjector(modules = LoginModule.class)
    @ActivityScope
    abstract LoginActivity loginActivity();