// Path: app/src/main/java/com/shaunchurch/androidpickings/App.java
// public class App extends Application {
// 
//     private AppComponent component;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         if(BuildConfig.DEBUG) {
//             Timber.plant(new Timber.DebugTree());
//         }
// 
//         buildComponentAndInject();
//     }
// 
//     /**
//      * Initialize our root AppComponent, kick off our dependency resolutions
//      */
//     public void buildComponentAndInject() {
//         component = AppComponent.Initializer.init(this);
//         component.inject(this);
//     }
// 
//     public AppComponent component() {
//         return component;
//     }
// 
//     public static App get(Context context) {
//         return (App) context.getApplicationContext();
//     }
// }
// 
// Path: app/src/main/java/com/shaunchurch/androidpickings/AppComponent.java
// @ApplicationScope
// @Component(modules = { AppModule.class, UiModule.class, DataModule.class })
// public interface AppComponent extends AppGraph {
//     /**
//      * An initializer that creates the graph from an application.
//      */
//     final static class Initializer {
//         static AppComponent init(App app) {
//             return DaggerAppComponent.builder()
//                     .appModule(new AppModule(app))
//                     .build();
//         }
//         private Initializer() {} // No instances.
//     }
// 
//     Application provideApplication();
// }
// 
// Path: app/src/main/java/com/shaunchurch/androidpickings/ui/AppContainer.java
// public interface AppContainer {
//     /**
//      * The root {@link android.view.ViewGroup} into which the activity should place its contents.
//      */
//     ViewGroup get(Activity activity);
// 
//     /**
//      * An {@link AppContainer} which returns the normal activity content view.
//      */
//     AppContainer DEFAULT = new AppContainer() {
//         @Override
//         public ViewGroup get(Activity activity) {
//             return findById(activity, android.R.id.content);
//         }
//     };
// }


import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import com.shaunchurch.androidpickings.App;
import com.shaunchurch.androidpickings.AppComponent;
import com.shaunchurch.androidpickings.ui.AppContainer;
import javax.inject.Inject;
package com.shaunchurch.androidpickings.ui.base;




public abstract class BaseActivity extends ActionBarActivity {

    @Inject
    AppContainer appContainer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

// Path: app/src/main/java/com/shaunchurch/androidpickings/App.java
// public class App extends Application {
// 
//     private AppComponent component;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         if(BuildConfig.DEBUG) {
//             Timber.plant(new Timber.DebugTree());
//         }
// 
//         buildComponentAndInject();
//     }
// 
//     /**
//      * Initialize our root AppComponent, kick off our dependency resolutions
//      */
//     public void buildComponentAndInject() {
//         component = AppComponent.Initializer.init(this);
//         component.inject(this);
//     }
// 
//     public AppComponent component() {
//         return component;
//     }
// 
//     public static App get(Context context) {
//         return (App) context.getApplicationContext();
//     }
// }
// 
// Path: app/src/main/java/com/shaunchurch/androidpickings/AppComponent.java
// @ApplicationScope
// @Component(modules = { AppModule.class, UiModule.class, DataModule.class })
// public interface AppComponent extends AppGraph {
//     /**
//      * An initializer that creates the graph from an application.
//      */
//     final static class Initializer {
//         static AppComponent init(App app) {
//             return DaggerAppComponent.builder()
//                     .appModule(new AppModule(app))
//                     .build();
//         }
//         private Initializer() {} // No instances.
//     }
// 
//     Application provideApplication();
// }
// 
// Path: app/src/main/java/com/shaunchurch/androidpickings/ui/AppContainer.java
// public interface AppContainer {
//     /**
//      * The root {@link android.view.ViewGroup} into which the activity should place its contents.
//      */
//     ViewGroup get(Activity activity);
// 
//     /**
//      * An {@link AppContainer} which returns the normal activity content view.
//      */
//     AppContainer DEFAULT = new AppContainer() {
//         @Override
//         public ViewGroup get(Activity activity) {
//             return findById(activity, android.R.id.content);
//         }
//     };
// }


// Path: app/src/main/java/com/shaunchurch/androidpickings/ui/base/BaseActivity.java
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import com.shaunchurch.androidpickings.App;
import com.shaunchurch.androidpickings.AppComponent;
import com.shaunchurch.androidpickings.ui.AppContainer;
import javax.inject.Inject;

package com.shaunchurch.androidpickings.ui.base;




public abstract class BaseActivity extends ActionBarActivity {

    @Inject
    AppContainer appContainer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        App app = App.get(this);