@Override public void onCreate() { super.onCreate(); if (LeakCanary.isInAnalyzerProcess(this)) { // This process is dedicated to LeakCanary for heap analysis. // You should not init your app in this process. return; } LeakCanary.install(this); Stetho.initializeWithDefaults(this); if(BuildConfig.DEBUG) { Timber.plant(new Timber.DebugTree()); Timber.plant(new StethoTree()); } component = DaggerApplicationComponent.builder() .applicationModule(new ApplicationModule(this)) .build(); component.inject(this); }
@Provides @Singleton SuperGlueInitializer provideSuperGlueInitializer() { return context -> { Stetho.initializeWithDefaults(context); Timber.plant(new Timber.DebugTree()); Timber.plant(new StethoTree()); }; }
Initializer() { return context -> { Stetho.initializeWithDefaults(context); Timber.plant(new Timber.DebugTree()); Timber.plant(new StethoTree()); }; }
public void init() { Timber.plant(new StethoTree()); Stetho.initialize( Stetho.newInitializerBuilder(context) .enableDumpapp(this) .enableWebKitInspector(createWebkitModulesProvider()) .build()); }
@Override protected void setupLogger() { Timber.plant(new Timber.DebugTree()); Timber.plant(new StethoTree()); }