Merge pull request #828 from jorgecasariego/master

Enable Stetho just on debug mode #813
This commit is contained in:
Yusuke Matsubara 2017-08-07 22:31:36 +09:00 committed by GitHub
commit 2777bacd27

View file

@ -11,7 +11,6 @@ import android.content.pm.PackageManager;
import android.database.sqlite.SQLiteDatabase;
import android.preference.PreferenceManager;
import android.support.v4.util.LruCache;
import android.util.Log;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.stetho.Stetho;
@ -131,11 +130,14 @@ public class CommonsApplication extends Application {
Timber.plant(new Timber.DebugTree());
Stetho.initializeWithDefaults(this);
if (!BuildConfig.DEBUG) {
ACRA.init(this);
} else {
Stetho.initializeWithDefaults(this);
}
// Fire progress callbacks for every 3% of uploaded content
System.setProperty("in.yuvi.http.fluent.PROGRESS_TRIGGER_THRESHOLD", "3.0");