From 20b62ba15f5177fd82cc9b453a0adba389ed053b Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Tue, 21 Jun 2016 12:17:43 -0500 Subject: [PATCH] Add stetho-timber --- build.gradle | 4 +++- src/debug/java/org/tasks/BuildSetup.java | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f47118d7c..b4b7af279 100644 --- a/build.gradle +++ b/build.gradle @@ -108,6 +108,7 @@ final DAGGER_VERSION = '2.4' final BUTTERKNIFE_VERSION = '8.1.0' final GPS_VERSION = '9.0.2' final SUPPORT_VERSION = '24.0.0' +final STETHO_VERSION = '1.3.1' dependencies { apt "com.google.dagger:dagger-compiler:${DAGGER_VERSION}" @@ -116,7 +117,8 @@ dependencies { apt "com.jakewharton:butterknife-compiler:${BUTTERKNIFE_VERSION}" compile "com.jakewharton:butterknife:${BUTTERKNIFE_VERSION}" - debugCompile 'com.facebook.stetho:stetho:1.3.1' + debugCompile "com.facebook.stetho:stetho:${STETHO_VERSION}" + debugCompile "com.facebook.stetho:stetho-timber:${STETHO_VERSION}@aar" debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta2' compile 'com.android.support:multidex:1.0.1' diff --git a/src/debug/java/org/tasks/BuildSetup.java b/src/debug/java/org/tasks/BuildSetup.java index d31d1e716..331d5fbbf 100644 --- a/src/debug/java/org/tasks/BuildSetup.java +++ b/src/debug/java/org/tasks/BuildSetup.java @@ -4,6 +4,7 @@ import android.app.Application; import android.content.Context; import com.facebook.stetho.Stetho; +import com.facebook.stetho.timber.StethoTree; import com.squareup.leakcanary.LeakCanary; import org.tasks.injection.ForApplication; @@ -22,6 +23,7 @@ public class BuildSetup { public void setup() { Timber.plant(new Timber.DebugTree()); + Timber.plant(new StethoTree()); Stetho.initializeWithDefaults(context); LeakCanary.install((Application) context); }