diff --git a/bin/cocoapods.sh b/bin/cocoapods.sh index e61b9238..0a58df6f 100755 --- a/bin/cocoapods.sh +++ b/bin/cocoapods.sh @@ -8,6 +8,7 @@ fi podfile="$ios_dir/Podfile" template=`pwd`/node_modules/react-native-firebase/ios/Podfile.template +template_content=`cat $template` project_name=$(node -pe "require('./package.json').name") @@ -46,16 +47,7 @@ target '${project_name}' do end # RNFirebase -pod 'Firebase/Auth' -pod 'Firebase/Analytics' -pod 'Firebase/AppIndexing' -pod 'Firebase/Core' -pod 'Firebase/Crash' -pod 'Firebase/Database' -pod 'Firebase/DynamicLinks' -pod 'Firebase/Messaging' -pod 'Firebase/RemoteConfig' -pod 'Firebase/Storage' +${template_content} EOL echo "Installing Pods" diff --git a/ios/Podfile.template b/ios/Podfile.template index 1dd4a8ee..5292ad4e 100644 --- a/ios/Podfile.template +++ b/ios/Podfile.template @@ -1,3 +1,23 @@ +pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga" +pod 'React', :path => '../node_modules/react-native', :subspecs => [ + # Add any other subspecs you want to use in your project + 'BatchedBridge', + 'Core', + #'DevSupport' + #'RCTActionSheet', + #'RCTAnimation', + #'RCTCameraRoll', + #'RCTGeolocation', + #'RCTImage', + #'RCTLinkingIOS', + #'RCTNetwork', + #'RCTPushNotification', + #'RCTSettings', + #'RCTText', + #'RCTVibration', + #'RCTWebSocket' +] + pod 'Firebase/Auth' pod 'Firebase/Analytics' pod 'Firebase/AppIndexing'