Skip to content

Instantly share code, notes, and snippets.

@CDRussell
Last active July 3, 2017 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CDRussell/d92d2c0d6a5cacf743f1a548d282e16a to your computer and use it in GitHub Desktop.
Save CDRussell/d92d2c0d6a5cacf743f1a548d282e16a to your computer and use it in GitHub Desktop.
Disabling Crashlytics on DEBUG Builds
public class YourApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
configureCrashReporting();
}
private void configureCrashReporting() {
CrashlyticsCore crashlyticsCore = new CrashlyticsCore.Builder()
.disabled(BuildConfig.DEBUG)
.build();
Fabric.with(this, new Crashlytics.Builder().core(crashlyticsCore).build());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment