// Path: mvvmapp/src/main/java/com/hibrianlee/mvvmapp/MvvmApplication.java
// public abstract class MvvmApplication extends Application {
// 
//     private AppComponent appComponent;
// 
//     protected abstract AppComponent createAppComponent();
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         if (appComponent == null) {
//             appComponent = createAppComponent();
//         }
//     }
// 
//     public AppComponent getAppComponent() {
//         return appComponent;
//     }
// 
//     public void setAppComponent(AppComponent appComponent) {
//         this.appComponent = appComponent;
//     }
// }
// 
// 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;
//     }
// }


import com.hibrianlee.mvvmapp.MvvmApplication;
import com.hibrianlee.mvvmapp.inject.AppComponent;
import com.hibrianlee.mvvmapp.inject.AppContextModule;
/*
 * 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;


public class MvvmSampleApplication extends MvvmApplication {

    @Override
// Path: mvvmapp/src/main/java/com/hibrianlee/mvvmapp/MvvmApplication.java
// public abstract class MvvmApplication extends Application {
// 
//     private AppComponent appComponent;
// 
//     protected abstract AppComponent createAppComponent();
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         if (appComponent == null) {
//             appComponent = createAppComponent();
//         }
//     }
// 
//     public AppComponent getAppComponent() {
//         return appComponent;
//     }
// 
//     public void setAppComponent(AppComponent appComponent) {
//         this.appComponent = appComponent;
//     }
// }
// 
// 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/MvvmSampleApplication.java
import com.hibrianlee.mvvmapp.MvvmApplication;
import com.hibrianlee.mvvmapp.inject.AppComponent;
import com.hibrianlee.mvvmapp.inject.AppContextModule;

/*
 * 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;


public class MvvmSampleApplication extends MvvmApplication {

    @Override
    protected AppComponent createAppComponent() {