// Path: consumer/app/src/main/java/au/com/dius/pactconsumer/app/di/ApplicationComponent.java
// @Singleton
// @Component(modules = {ApplicationModule.class, NetworkModule.class})
// public interface ApplicationComponent {
// 
//   @NonNull
//   Context getContext();
// 
//   @NonNull
//   Logger getLogger();
// 
//   @NonNull
//   Repository getRepository();
// 
//   void inject(HomeActivity homeActivity);
// }


import android.app.Application;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import au.com.dius.pactconsumer.app.di.ApplicationComponent;
package au.com.dius.pactconsumer.app;



public abstract class PactActivity extends AppCompatActivity {

  @Override
  protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    inject(getPactApplication().getApplicationComponent());
  }

// Path: consumer/app/src/main/java/au/com/dius/pactconsumer/app/di/ApplicationComponent.java
// @Singleton
// @Component(modules = {ApplicationModule.class, NetworkModule.class})
// public interface ApplicationComponent {
// 
//   @NonNull
//   Context getContext();
// 
//   @NonNull
//   Logger getLogger();
// 
//   @NonNull
//   Repository getRepository();
// 
//   void inject(HomeActivity homeActivity);
// }


// Path: consumer/app/src/main/java/au/com/dius/pactconsumer/app/PactActivity.java
import android.app.Application;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import au.com.dius.pactconsumer.app.di.ApplicationComponent;

package au.com.dius.pactconsumer.app;



public abstract class PactActivity extends AppCompatActivity {

  @Override
  protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    inject(getPactApplication().getApplicationComponent());
  }

  public abstract void inject(@NonNull ApplicationComponent component);