Only record crashes in release mode

pull/26/head
Niels Andriesse 5 years ago
parent cad37f29e7
commit 8a16fd2a97

@ -165,7 +165,9 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
// Loki - Set up P2P API if needed
setUpP2PAPI();
// Loki - Set up beta analytics
Fabric.with(this, new Crashlytics());
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
}
mixpanel = MixpanelAPI.getInstance(this, "59040b6707e5a1725f3fb6730fefca92");
Analytics.Companion.getShared().trackImplementation = (Function1<String, Unit>) event -> {
HashMap<String, Object> properties = new HashMap();

Loading…
Cancel
Save