ignite-crashlytics v0.0.2
ignite-crashlytics
An ignite plugin for Crashlytics via react-native-fabric.
⚠️ DISCLAIMER: This was previously ignite-fabric, and you can still find ignite-fabric on npm, that should work, but we will no longer support it.
This plugin has been adapted to work with the new installation of Crashlytics as stated in Google's Documentation.
Therefore, we can't assure that all features of react-native-fabric will work with that installation.
Compatibility
| RN Version | ignite-crashlytics Version |
|---|---|
| 0.57.3+ | 0.0.2+ |
| 0.55.4- | 0.0.1 |
Prerequisites
You will need to have a Firebase project and the configuration files (google-services.json for Android, GoogleService-Info.plist for iOS) in your project.
How to add/remove
ignite add ignite-crashlytics
ignite remove ignite-crashlyticsWhat does it do
Basically: https://firebase.google.com/docs/crashlytics/get-started
- iOS:
- Creating a
Podfileinios/if you don't have one - Adding the Fabric and Crashlytics pods to the
Podfile - Installing pods (don't forget to use
YourProject.xcworkspaceand not the.xcodeprojafterwards) - Add the Firebase initialization to
AppDelegate.m
- Creating a
- Android:
- Adding the needed bits of code in
build.gradleandMainApplication.java(if you haven't changed the defaultreact-native initstructure)
- Adding the needed bits of code in
- Adding
react-native-fabric
Manual steps left to do
When adding:
- iOS:
-> Add the 'Script build phase' as stated in the documentation (see links above)
- Android: good to go!When removing:
Remove the 'Script build phase' from your iOS projectThanks
Thanks @skellock for the help and @infinitered for the awesome job you guys are doing :)