Set Traceur to only work in DEBUG mode (#1884)

This commit is contained in:
Josephine Lim 2018-09-07 00:37:47 +10:00 committed by GitHub
parent 6eb01b8076
commit 325e0168e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,11 @@ public class CommonsApplication extends MultiDexApplication {
@Override
public void onCreate() {
super.onCreate();
Traceur.enableLogging();
if (BuildConfig.DEBUG) {
//FIXME: Traceur should be disabled for release builds until error fixed
//See https://github.com/commons-app/apps-android-commons/issues/1877
Traceur.enableLogging();
}
ApplicationlessInjection
.getInstance(this)