@@ -0,0 +1,1340 @@
+package com.github.pedrovgs.effectiveandroidui.ui;%0A%0Aimport android.os.Bundle;%0Aimport android.support.v7.app.ActionBarActivity;%0Aimport com.github.pedrovgs.effectiveandroidui.TvShowsApplication;%0Aimport java.util.List;%0A%0A/**%0A * Base activity created to be extended by every activity in this application. This class provides%0A * dependency injection configuration, butterknife Android library configuration and some methods%0A * common to every activity.%0A *%0A * @author Pedro Vicente G%C3%B3mez S%C3%A1nchez%0A */%0Apublic abstract class BaseActivity extends ActionBarActivity %7B%0A%0A  @Override protected void onCreate(Bundle savedInstanceState) %7B%0A    super.onCreate(savedInstanceState);%0A    injectDependencies();%0A  %7D%0A%0A  /**%0A   * Modify Dagger ObjectGraph to add new dependencies using a plus operation and inject the%0A   * declared one in the activity. This new dependencies will be removed from the gobal graph once%0A   * the activity lifecycle finish.%0A   */%0A  private void injectDependencies() %7B%0A    TvShowsApplication tvShowsApplication = (TvShowsApplication) getApplication();%0A    tvShowsApplication.plus(getModules());%0A    tvShowsApplication.inject(this);%0A  %7D%0A%0A  /**%0A   * Get a list of Dagger modules with Activity scope needed to this Activity.%0A   *%0A   * @return modules with new dependencies to provide.%0A   */%0A  protected abstract List%3CObject%3E getModules();%0A%7D%0A

Create BaseActivity to be extended by every Activity in the project. This activity supports injection