Merge pull request #495 from whym/disable-acra-debug

Disable ACRA on debug builds
This commit is contained in:
Josephine Lim 2017-04-13 20:43:06 +10:00 committed by GitHub
commit eb99350caf

View file

@ -92,7 +92,9 @@ public class CommonsApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
ACRA.init(this);
if (!BuildConfig.DEBUG) {
ACRA.init(this);
}
// Fire progress callbacks for every 3% of uploaded content
System.setProperty("in.yuvi.http.fluent.PROGRESS_TRIGGER_THRESHOLD", "3.0");
api = createMWApi();