Making debugging easier with stetho

This commit is contained in:
maskara 2017-05-15 16:51:44 +02:00
parent 9a2ab847e7
commit c49720c777
2 changed files with 4 additions and 0 deletions

View file

@ -20,6 +20,7 @@ dependencies {
compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:5.0.2@aar'){
transitive=true
}
compile 'com.facebook.stetho:stetho:1.5.0'
testCompile 'junit:junit:4.12'
androidTestCompile "com.android.support:support-annotations:${project.supportLibVersion}"

View file

@ -14,6 +14,7 @@ import com.android.volley.RequestQueue;
import com.android.volley.toolbox.BasicNetwork;
import com.android.volley.toolbox.DiskBasedCache;
import com.android.volley.toolbox.HurlStack;
import com.facebook.stetho.Stetho;
import com.nostra13.universalimageloader.cache.disc.impl.TotalSizeLimitedDiscCache;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
@ -94,6 +95,8 @@ public class CommonsApplication extends Application {
Timber.plant(new Timber.DebugTree());
Stetho.initializeWithDefaults(this);
if (!BuildConfig.DEBUG) {
ACRA.init(this);
}