ignite-fabric
v0.0.1
Published
An Ignite plugin which installs react-native-fabric and most of the native stuff.
Downloads
1
Readme
ignite-fabric
An ignite plugin for react-native-fabric.
How to add/remove
ignite add ignite-fabric
ignite remove ignite-fabric
What does it do
Basically, most of: https://fabric.io/kits/ios/crashlytics/install and https://fabric.io/kits/android/crashlytics/install
- Adding
react-native-fabric
- iOS:
- Creating a
Podfile
inios/
if you don't have one - Adding the Fabric and Crashlytics pods to the
Podfile
- Installing pods (don't forget to use
YourProject.xcworkspace
and not the.xcodeproj
afterwards) - Adding a placeholder in your
Info.plist
to put your FABRIC_API_KEY
- Creating a
- Android:
- Adding the needed bits of code in
build.gradle
andMainApplication.java
(if you haven't changed the defaultreact-native init
structure) - Adding a placeholder in
AndroidManifest.xml
to put your FABRIC_API_KEY
- Adding the needed bits of code in
Manual steps left to do
When adding:
- iOS:
-> Add the 'Script build phase' as stated in the documentation (see links above)
-> Replace the FABRIC_API_KEY in 'ios/${name}/Info.plist'
- Android:
-> Replace the FABRIC_API_KEY in 'android/app/src/main/AndroidManifest.xml'
When removing:
Remove your Fabric API Key from:
- ${process.cwd()}/android/app/src/main/AndroidManifest.xml
- ${process.cwd()}/ios/${name}/Info.plist
Remove the iOS script build phase
Disclosure: I totally copied and modified ignite-animatable. Thanks @skellock for the help and @infinitered for the awesome job you guys are doing :)