content: package <%= appPackage %>;
  
  import android.app.Activity;
  import android.app.Application;
  
  import <%= appPackage %>.di.DaggerAppComponent;
  import <%= appPackage %>.domain.services.jobs.JobManagerFactory;
  
  import javax.inject.Inject;
  
  import dagger.android.AndroidInjector;
  import dagger.android.DispatchingAndroidInjector;
  import dagger.android.HasActivityInjector;
  import timber.log.Timber;
  
  public class App extends Application implements HasActivityInjector {
      @Inject
      DispatchingAndroidInjector<Activity> dispatchingAndroidInjector;
  
      @Override
      public void onCreate() {
          super.onCreate();
  
          if (BuildConfig.DEBUG) {
              Timber.plant(new Timber.DebugTree());
          }
  
          DaggerAppComponent
                  .builder()
                  .application(this)
                  .build()
                  .inject(this);
  
          JobManagerFactory.getJobManager(this);
      }
  
      @Override
      public AndroidInjector<Activity> activityInjector() {
          return dispatchingAndroidInjector;
      }
  }
  