package de.philipphager.disclosure;

import android.app.Application;
import com.jakewharton.threetenabp.AndroidThreeTen;

import static de.philipphager.disclosure.util.assertion.Assertions.ensureNotNull;

public class DisclosureApp extends Application {
  private ApplicationComponent applicationComponent;

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

  private void buildObjectGraphAndInject() {
    applicationComponent = DaggerApplicationComponent.builder()
        .applicationModule(new ApplicationModule(this))
        .build();

    AndroidThreeTen.init(this);
  }

  public ApplicationComponent getApplicationComponent() {
    return ensureNotNull(applicationComponent, "object graph not build");
  }
}

@@ -62,16 +62,51 @@
 cation;%0A
+import com.facebook.stetho.Stetho;%0A
 import c
@@ -148,16 +148,42 @@
 hreeTen;
+%0Aimport timber.log.Timber;
 %0A%0Aimport
@@ -675,16 +675,99 @@
 (this);%0A
+    Stetho.initializeWithDefaults(this);%0A    Timber.plant(new Timber.DebugTree());%0A
   %7D%0A%0A  p

Initialize Stetho and Timber logging in Application