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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -