misc build script changes

This commit is contained in:
Salakar 2017-03-17 14:57:22 +00:00
parent 8830b98c18
commit 50c97ad542
4 changed files with 35 additions and 52 deletions

View File

@ -56,6 +56,7 @@ android/gradlew
android/build android/build
android/gradlew.bat android/gradlew.bat
android/gradle/ android/gradle/
docs
.idea .idea
coverage coverage
yarn.lock yarn.lock

View File

@ -1,7 +1,5 @@
#!/bin/sh #!/bin/sh
## https://github.com/auth0/react-native-lock/blob/master/bin/cocoapods.sh
ios_dir=`pwd`/ios ios_dir=`pwd`/ios
if [ -d ios_dir ] if [ -d ios_dir ]
then then
@ -9,9 +7,11 @@ if [ -d ios_dir ]
fi fi
podfile="$ios_dir/Podfile" podfile="$ios_dir/Podfile"
template=`pwd`/node_modules/react-native-firebase/ios/Podfile.template template=`pwd`/node_modules/react-native-firebase/Podfile.template
echo "Checking Podfile in iOS project ($podfile)" project_name=$(node -pe "require('./package.json').name")
echo "Checking Podfile in iOS project $project_name ($podfile)"
if [ -f $podfile ] if [ -f $podfile ]
then then
@ -21,22 +21,6 @@ if [ -f $podfile ]
if [ "$generate_env_file" != "y" ] if [ "$generate_env_file" != "y" ]
then then
# pod outdated | grep "The following pod updates are available:"
# status=$?
# if [ $status -eq 0 ]; then
# echo "From what I can tell, there look to be updates available..."
# echo "Do you want to update your cocoapods? [N/y]"
# read update_pods
# if [ "$update_pods" != "y" ]
# then
# pod update --project-directory=ios
# exit 0
# else
# exit 0
# fi
# fi
echo "Add the following pods": echo "Add the following pods":
echo "" echo ""
echo "" echo ""
@ -53,10 +37,26 @@ fi
echo "Adding Podfile to iOS project" echo "Adding Podfile to iOS project"
cd ios touch ios/Podfile
pod init >/dev/null 2>&1 cat >ios/Podfile <<EOL
cat $template >> $podfile target '${project_name}' do
cd .. # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for '${project_name}'
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'
EOL
echo "Installing Pods" echo "Installing Pods"

View File

@ -1,15 +1,10 @@
source 'https://github.com/CocoaPods/Specs.git' pod 'Firebase/Auth'
use_frameworks! pod 'Firebase/Analytics'
platform :ios, '8.0' pod 'Firebase/AppIndexing'
pod 'Firebase/Core'
[ pod 'Firebase/Crash'
'Firebase', pod 'Firebase/Database'
'Firebase/Core', pod 'Firebase/DynamicLinks'
'Firebase/Auth', pod 'Firebase/Messaging'
'Firebase/Storage', pod 'Firebase/RemoteConfig'
'Firebase/Database', pod 'Firebase/Storage'
'Firebase/RemoteConfig',
'Firebase/Messaging'
].each do |lib|
pod lib
end

View File

@ -1,13 +0,0 @@
#!/bin/sh
frameworks="Firebase FirebaseAnalytics"
source "${SRCROOT}/Pods/Target Support Files/Pods-Firestack/Pods-Firestack-frameworks.sh"
FRAMEWORKS_FOLDER_PATH=""
for framework in $frameworks
do
install_framework "${SRCROOT}/Pods/$framework"
done