Crashlytics: All methods appear to be deprecated?

528 views Asked by At

I'm trying to add custom keys to my crash reports as described here:

http://docs.fabric.io/android/crashlytics/enhanced-reports.html#custom-keys

However, all the methods appear to be deprecated:

enter image description here

What am I missing?

2

There are 2 answers

0
ilitirit On BEST ANSWER

According to a comment here, the documentation is outdated.

You are supposed to use:

Crashlytics.getInstance().core.setXYZ()
1
jmarsh On

The latest version is 2.3.2 and the documentation indicates to use CrashlyticsCore.getInstance() instead of Crashlytics directly to set custom keys or log.

http://docs.fabric.io/javadocs/crashlytics/2.3.2/

** UPDATED **

The documentation page has been updated: https://dev.twitter.com/crashlytics/android/enhancing-crash-reports

Crashlytics.getInstance().core