// Path: mvvmapp/src/main/java/com/hibrianlee/mvvmapp/inject/AppComponent.java
// public interface AppComponent {
// 
//     @AppContext
//     Context appContext();
// 
//     void inject(ViewModelActivity viewModelActivity);
// 
//     void inject(ViewModelFragment viewModelFragment);
// }
// 
// Path: mvvmapp/src/main/java/com/hibrianlee/mvvmapp/inject/AppContextModule.java
// @Module
// public class AppContextModule {
// 
//     private final Context appContext;
// 
//     public AppContextModule(Application application) {
//         appContext = application;
//     }
// 
//     @Provides
//     @Singleton
//     @AppContext
//     Context provideAppContext() {
//         return appContext;
//     }
// }
// 
// Path: sample/src/main/java/com/hibrianlee/sample/mvvm/activity/BaseActivity.java
// public class BaseActivity extends ViewModelActivity {
// 
//     @Inject
//     protected ViewModelFactory viewModelFactory;
// 
//     @Override
//     protected void inject(AppComponent appComponent) {
//         ((SampleAppComponent) appComponent).inject(this);
//     }
// }
// 
// Path: sample/src/main/java/com/hibrianlee/sample/mvvm/fragment/BaseFragment.java
// public abstract class BaseFragment extends ViewModelFragment {
// 
//     @Inject
//     protected ViewModelFactory viewModelFactory;
// 
//     @Override
//     protected void inject(AppComponent appComponent) {
//         ((SampleAppComponent) appComponent).inject(this);
//     }
// }


import com.hibrianlee.mvvmapp.inject.AppComponent;
import com.hibrianlee.mvvmapp.inject.AppContextModule;
import com.hibrianlee.sample.mvvm.activity.BaseActivity;
import com.hibrianlee.sample.mvvm.fragment.BaseFragment;
import javax.inject.Singleton;
import dagger.Component;
/*
 * Copyright (C) 2015 Brian Lee (@hiBrianLee)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hibrianlee.sample.mvvm;




@Singleton
@Component(modules = {
        AppContextModule.class,
        SampleAppModule.class
})
// Path: mvvmapp/src/main/java/com/hibrianlee/mvvmapp/inject/AppComponent.java
// public interface AppComponent {
// 
//     @AppContext
//     Context appContext();
// 
//     void inject(ViewModelActivity viewModelActivity);
// 
//     void inject(ViewModelFragment viewModelFragment);
// }
// 
// Path: mvvmapp/src/main/java/com/hibrianlee/mvvmapp/inject/AppContextModule.java
// @Module
// public class AppContextModule {
// 
//     private final Context appContext;
// 
//     public AppContextModule(Application application) {
//         appContext = application;
//     }
// 
//     @Provides
//     @Singleton
//     @AppContext
//     Context provideAppContext() {
//         return appContext;
//     }
// }
// 
// Path: sample/src/main/java/com/hibrianlee/sample/mvvm/activity/BaseActivity.java
// public class BaseActivity extends ViewModelActivity {
// 
//     @Inject
//     protected ViewModelFactory viewModelFactory;
// 
//     @Override
//     protected void inject(AppComponent appComponent) {
//         ((SampleAppComponent) appComponent).inject(this);
//     }
// }
// 
// Path: sample/src/main/java/com/hibrianlee/sample/mvvm/fragment/BaseFragment.java
// public abstract class BaseFragment extends ViewModelFragment {
// 
//     @Inject
//     protected ViewModelFactory viewModelFactory;
// 
//     @Override
//     protected void inject(AppComponent appComponent) {
//         ((SampleAppComponent) appComponent).inject(this);
//     }
// }


// Path: sample/src/main/java/com/hibrianlee/sample/mvvm/SampleAppComponent.java
import com.hibrianlee.mvvmapp.inject.AppComponent;
import com.hibrianlee.mvvmapp.inject.AppContextModule;
import com.hibrianlee.sample.mvvm.activity.BaseActivity;
import com.hibrianlee.sample.mvvm.fragment.BaseFragment;
import javax.inject.Singleton;
import dagger.Component;

/*
 * Copyright (C) 2015 Brian Lee (@hiBrianLee)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hibrianlee.sample.mvvm;




@Singleton
@Component(modules = {
        AppContextModule.class,
        SampleAppModule.class
})
public interface SampleAppComponent extends AppComponent {