mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Merge pull request #594 from maskaravivek/stetho
Making debugging easier with stetho
This commit is contained in:
commit
37c3004b57
2 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ dependencies {
|
||||||
compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:5.0.2@aar'){
|
compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:5.0.2@aar'){
|
||||||
transitive=true
|
transitive=true
|
||||||
}
|
}
|
||||||
|
compile 'com.facebook.stetho:stetho:1.5.0'
|
||||||
|
|
||||||
testCompile 'junit:junit:4.12'
|
testCompile 'junit:junit:4.12'
|
||||||
androidTestCompile "com.android.support:support-annotations:${project.supportLibVersion}"
|
androidTestCompile "com.android.support:support-annotations:${project.supportLibVersion}"
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ import com.android.volley.RequestQueue;
|
||||||
import com.android.volley.toolbox.BasicNetwork;
|
import com.android.volley.toolbox.BasicNetwork;
|
||||||
import com.android.volley.toolbox.DiskBasedCache;
|
import com.android.volley.toolbox.DiskBasedCache;
|
||||||
import com.android.volley.toolbox.HurlStack;
|
import com.android.volley.toolbox.HurlStack;
|
||||||
|
import com.facebook.stetho.Stetho;
|
||||||
import com.nostra13.universalimageloader.cache.disc.impl.TotalSizeLimitedDiscCache;
|
import com.nostra13.universalimageloader.cache.disc.impl.TotalSizeLimitedDiscCache;
|
||||||
import com.nostra13.universalimageloader.core.ImageLoader;
|
import com.nostra13.universalimageloader.core.ImageLoader;
|
||||||
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
|
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
|
||||||
|
|
@ -97,6 +98,8 @@ public class CommonsApplication extends Application {
|
||||||
|
|
||||||
Timber.plant(new Timber.DebugTree());
|
Timber.plant(new Timber.DebugTree());
|
||||||
|
|
||||||
|
Stetho.initializeWithDefaults(this);
|
||||||
|
|
||||||
if (!BuildConfig.DEBUG) {
|
if (!BuildConfig.DEBUG) {
|
||||||
ACRA.init(this);
|
ACRA.init(this);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue