Created
April 3, 2014 22:40
-
-
Save AdamJB/9964315 to your computer and use it in GitHub Desktop.
Configure local dev environment for custom android project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Replace with local android sdk location | |
ANDROID_SDK=$HOME/android-sdk/ | |
if [[ $2 == '' ]]; then | |
echo "Missing Params: " | |
echo "First Param: Git Account Name" | |
echo "Second Param: Git Repo Name" | |
return 1 | |
fi | |
# Clone Project | |
# First Param = Git Account | |
# Second Param = Git Repo Name | |
git clone [email protected]:$1/$2.git --recursive | |
# Clone Holo Everywhere | |
pushd $PWD | |
git clone https://github.com/Prototik/HoloEverywhere.git --recursive | |
cd HoloEverywhere | |
git checkout -b v.1.6.8 v1.6.8 | |
git submodule init | |
git submodule update | |
rm -f addons/preferences/pom.xml | |
rm -f library/pom.xml | |
cd ActionBarSherlock | |
git checkout -b 4.3.1 4.3.1 | |
# Replace ABS Support Library | |
cp ../android-support-v4-r13.jar ./actionbarsherlock/libs/android-support-v4-r13.jar | |
rm -f ./actionbarsherlock/libs/android-support-v4.jar | |
# Remove some files... | |
rm -f ./actionbarsherlock/pom.xml | |
rm -f actionbarsherlock/test/com/actionbarsherlock/internal/ResourcesCompatTest.java | |
popd | |
# Clone Android View Pager | |
pushd $PWD | |
git clone https://github.com/JakeWharton/Android-ViewPagerIndicator.git | |
cd Android-ViewPagerIndicator | |
git checkout -b 2.4.1 2.4.1 | |
rm -f ./pom.xml | |
cp ../HoloEverywhere/android-support-v4-r13.jar ./library/libs/android-support-v4-r13.jar | |
rm -f library/libs/android-support-v4.jar | |
mkdir -p library/res/raw | |
cp ../orange-android/res/raw/*.ttf ./library/res/raw | |
popd | |
# Copy google play stuff over | |
cp -a $ANDROID_SDK/extras/google/google_play_services/libproject/google-play-services_lib ./google-play-services_lib | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment