Just a quick question about Crashlytics from Fabric.io:
To disable it in debug, should we still use:
Crashlytics crashlytics = new Crashlytics.Builder().disabled(BuildConfig.DEBUG).build();
Fabric.with(this, crashlytics);
Or does Fabric handle the debug/release difference and should we just use:
Fabric.with(this, new Crashlytics());
The disabled method is depricated and if you use the Fabric plugin in Android Studio, it always changes the crashlytics instance to new Crashlytics()
.
With the new 2.3.+ version you should use somenthing like this:
Fabric.with(this, new Crashlytics.Builder()
.core(new CrashlyticsCore.Builder()
.disabled(BuildConfig.DEBUG)
.build())
.build());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With