Disable ACRA on debug builds

This commit is contained in:
Yusuke Matsubara 2017-04-13 18:43:16 +09:00
parent 6b89647a4c
commit 411bfb3df8

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();