Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the Crashlytics version?

I wanted to know wether I can able to find the Crashlytics version added in my existing project. And how ?

Note* Crashlytics has been added using "Fabrics" and added as submodules(not as pod).

like image 322
Bharath Avatar asked Jan 05 '23 01:01

Bharath


2 Answers

Simply:

NSLog(@"Crashlytics version: %@", [CrashlyticsKit version]);

Or in Swift:

print("Crashlytics version: \(Crashlytics.sharedInstance().version)")

It returns a String like 3.7.3

like image 134
Axel Guilmin Avatar answered Jan 17 '23 03:01

Axel Guilmin


Since Firebase/Crashlytics 7.1.0, it's:

FirebaseCore.FirebaseVersion()

https://stackoverflow.com/a/64883121/3783833

like image 28
agirault Avatar answered Jan 17 '23 03:01

agirault