Disabling Crashlytics error reporting is relatively straight forward.. I'd also like to disable Answers for debug builds. However,
new Crashlytics.Builder().answers(null);
doesn't work since apparently answers can't be null and
new Crashlytics.Builder().answers(new CustomAnswers());
with CustomAnswers being my class extending Answers gets me a NPE when calling Answers.getInstance()
. But that approach is cumbersome to begin with compared to simply calling some enable() method.
Any ideas?
On a side note, I really hope Fabric is going to update and improve their docs soon.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…