[ios] Update setup to use Podfile template contents

This commit is contained in:
Chris Bianca 2017-06-13 16:12:35 +01:00
parent 8bf660badc
commit d68703da64
2 changed files with 22 additions and 10 deletions

View File

@ -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"

View File

@ -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'