// 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/di/ApplicationModule.java
// @Module
// public class ApplicationModule {
// 
//   private final Context context;
// 
//   public ApplicationModule(@NonNull Context context) {
//     this.context = context;
//   }
// 
//   @Singleton
//   @Provides
//   @NonNull
//   public Context getContext() {
//     return context;
//   }
// 
//   @Singleton
//   @Provides
//   @NonNull
//   public Repository getRepository(@NonNull Retrofit retrofit) {
//     return new Service(retrofit.create(Service.Api.class));
//   }
// 
// }


import android.app.Application;
import android.support.annotation.NonNull;
import au.com.dius.pactconsumer.app.di.ApplicationComponent;
import au.com.dius.pactconsumer.app.di.ApplicationModule;
import au.com.dius.pactconsumer.app.di.DaggerApplicationComponent;
package au.com.dius.pactconsumer.app;



public class PactApplication extends Application {

  private ApplicationComponent applicationComponent;

  @Override
  public void onCreate() {
    super.onCreate();
    initialise();
  }

  private void initialise() {
    applicationComponent = DaggerApplicationComponent.builder()
// 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/di/ApplicationModule.java
// @Module
// public class ApplicationModule {
// 
//   private final Context context;
// 
//   public ApplicationModule(@NonNull Context context) {
//     this.context = context;
//   }
// 
//   @Singleton
//   @Provides
//   @NonNull
//   public Context getContext() {
//     return context;
//   }
// 
//   @Singleton
//   @Provides
//   @NonNull
//   public Repository getRepository(@NonNull Retrofit retrofit) {
//     return new Service(retrofit.create(Service.Api.class));
//   }
// 
// }


// Path: consumer/app/src/main/java/au/com/dius/pactconsumer/app/PactApplication.java
import android.app.Application;
import android.support.annotation.NonNull;
import au.com.dius.pactconsumer.app.di.ApplicationComponent;
import au.com.dius.pactconsumer.app.di.ApplicationModule;
import au.com.dius.pactconsumer.app.di.DaggerApplicationComponent;

package au.com.dius.pactconsumer.app;



public class PactApplication extends Application {

  private ApplicationComponent applicationComponent;

  @Override
  public void onCreate() {
    super.onCreate();
    initialise();
  }

  private void initialise() {
    applicationComponent = DaggerApplicationComponent.builder()
        .applicationModule(new ApplicationModule(this))