Skip to content

Commit

Permalink
Use pods instead of submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgarcia committed Dec 9, 2016
1 parent 2fb3c58 commit fa624c5
Show file tree
Hide file tree
Showing 258 changed files with 364 additions and 32,395 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ buck-out/
\.buckd/
android/app/libs
*.keystore

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
Pods/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

11 changes: 9 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Sample app
demo/
*.yml
demo/
*.framework
android/build/
*.iml
*.class

Gemfile
Gemfile.lock
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source "https://rubygems.org"

gem "cocoapods", "~> 1.0"
gem "xcpretty"
3 changes: 3 additions & 0 deletions Podfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
platform :ios, '9.0'

pod 'keyframes', :git => 'https://github.com/EddyVerbruggen/Keyframes.git', :commit => 'cb645d8722c2e9327c15dd973a2121644288b1c0'
45 changes: 45 additions & 0 deletions bin/cocoapods.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/sh

ios_dir=`pwd`/ios
if [ -d ios_dir ]
then
exit 0
fi

podfile="$ios_dir/Podfile"
template=`pwd`/node_modules/react-native-facebook-keyframes/Podfile.template

echo "Checking Podfile in iOS project ($podfile)"

if [ -f $podfile ]
then
echo ""
echo "Found an existing Podfile, Do you want to override it? [N/y]"
read generate_env_file

if [ "$generate_env_file" != "y" ]
then
echo "Add the following pods":
echo ""
echo ""
cat $template
echo ""
echo ""
echo "and run 'pod install' to install RNFacebookKeyframes for iOS"
exit 0
fi

rm -f $podfile
rm -f "$podfile.lock"
fi

echo "Adding Podfile to iOS project"

cd ios
pod init >/dev/null 2>&1
cat $template >> $podfile
cd ..

echo "Installing Pods"

pod install --project-directory=ios
13 changes: 13 additions & 0 deletions bin/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

echo "Preparing to link react-native-facebook-keyframes for iOS"

echo "Checking CocoaPods..."
has_cocoapods=`which pod >/dev/null 2>&1`
if [ -z "$has_cocoapods" ]
then
echo "CocoaPods already installed"
else
echo "Installing CocoaPods..."
gem install cocoapods
fi
Loading

0 comments on commit fa624c5

Please sign in to comment.