@Override public void onCreate() { super.onCreate(); AndroidThreeTen.init(this); LeakCanary.install(this); if (BuildConfig.DEBUG) { Timber.plant(new DebugTree()); } else { // TODO Crashlytics.start(this); // TODO Timber.plant(new CrashlyticsTree()); } objectGraph = ObjectGraph.create(Modules.list(this)); objectGraph.inject(this); lumberYard.cleanUp(); Timber.plant(lumberYard.tree()); registerActivityLifecycleCallbacks(activityHierarchyServer); }
private void buildObjectGraphAndInject() { objectGraph = ObjectGraph.create(Modules.list(this)); objectGraph.inject(this); }