Last active
July 3, 2017 12:19
-
-
Save CDRussell/d92d2c0d6a5cacf743f1a548d282e16a to your computer and use it in GitHub Desktop.
Disabling Crashlytics on DEBUG Builds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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