Add stetho-timber

pull/413/head
Alex Baker 10 years ago
parent 27948a892e
commit 20b62ba15f

@ -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'

@ -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);
}

Loading…
Cancel
Save