android - How to disable Crashlytics and Answers during DEBUG -


this question has answer here:

i want disable crashlytics , answers executed on debugging environment.

i found many solutions on web, none describe how disable answer module.

right now, i´m using following code. however, crashlytics disabled.

crashlyticscore core = new crashlyticscore.builder().disabled(buildconfig.debug).build(); fabric.with(this, new crashlytics.builder().core(core).build(), new answers()); 

how about:

crashlyticscore core = new crashlyticscore.builder().disabled(buildconfig.debug).build(); crashlytics crashlytics = new crashlytics.builder().core(core).build(); if (buildconfig.debug) {     fabric.with(this, crashlytics); } else {     fabric.with(this, crashlytics, new answers()); } 

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -