// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/config/Config.java
// public interface Config {
// 
//     public String getUserName();
// 
//     public void setUserName(String userName);
// 
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/presenter/SettingPresenter.java
// public interface SettingPresenter {
// 
//     public String getUserName();
// 
//     public void setUserName(String name);
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/presenter/internal/SettingPresenterImpl.java
// public class SettingPresenterImpl implements SettingPresenter {
// 
//     SettingView mView;
//     Config mConfig;
// 
//     @Inject
//     public SettingPresenterImpl(SettingView view, Config config){
//         mView = view;
//         mConfig = config;
//     }
// 
//     @Override
//     public String getUserName() {
//         return mConfig.getUserName();
//     }
// 
//     @Override
//     public void setUserName(String name) {
//         mConfig.setUserName(name);
//         mView.updateUserName(name);
//     }
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/view/SettingView.java
// public interface SettingView {
// 
//     public void updateUserName(String userName);
// 
// }


import com.newegg.tr.dagger2prac.model.config.Config;
import com.newegg.tr.dagger2prac.presenter.SettingPresenter;
import com.newegg.tr.dagger2prac.presenter.internal.SettingPresenterImpl;
import com.newegg.tr.dagger2prac.view.SettingView;
import dagger.Module;
import dagger.Provides;
package com.newegg.tr.dagger2prac.view.module;



/**
 * Created by william on 15/2/3.
 */
@Module
public class SettingModule {
    SettingView view;

    public SettingModule(SettingView view) {
        this.view = view;
    }

    @Provides
// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/config/Config.java
// public interface Config {
// 
//     public String getUserName();
// 
//     public void setUserName(String userName);
// 
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/presenter/SettingPresenter.java
// public interface SettingPresenter {
// 
//     public String getUserName();
// 
//     public void setUserName(String name);
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/presenter/internal/SettingPresenterImpl.java
// public class SettingPresenterImpl implements SettingPresenter {
// 
//     SettingView mView;
//     Config mConfig;
// 
//     @Inject
//     public SettingPresenterImpl(SettingView view, Config config){
//         mView = view;
//         mConfig = config;
//     }
// 
//     @Override
//     public String getUserName() {
//         return mConfig.getUserName();
//     }
// 
//     @Override
//     public void setUserName(String name) {
//         mConfig.setUserName(name);
//         mView.updateUserName(name);
//     }
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/view/SettingView.java
// public interface SettingView {
// 
//     public void updateUserName(String userName);
// 
// }


// Path: app/src/release/java/com/newegg/tr/dagger2prac/view/module/SettingModule.java
import com.newegg.tr.dagger2prac.model.config.Config;
import com.newegg.tr.dagger2prac.presenter.SettingPresenter;
import com.newegg.tr.dagger2prac.presenter.internal.SettingPresenterImpl;
import com.newegg.tr.dagger2prac.view.SettingView;
import dagger.Module;
import dagger.Provides;

package com.newegg.tr.dagger2prac.view.module;



/**
 * Created by william on 15/2/3.
 */
@Module
public class SettingModule {
    SettingView view;

    public SettingModule(SettingView view) {
        this.view = view;
    }

    @Provides
    public SettingPresenter presenter(Config config){