Skip to content

Instantly share code, notes, and snippets.

@tkhduracell
Last active January 2, 2016 15:39
Show Gist options
  • Select an option

  • Save tkhduracell/4dc1c3bbfd918cc2a9c3 to your computer and use it in GitHub Desktop.

Select an option

Save tkhduracell/4dc1c3bbfd918cc2a9c3 to your computer and use it in GitHub Desktop.
Old CodeShip android
export ANDROID_PKG=platform-tool,android-22,build-tools-22.0.1,extra-google-m2repository,extra-android-m2repository
export SDK=`pwd`/sdk
mkdir -p $SDK
ls -l $SDK
curl --location http://dl.google.com/android/$SDK_VERSION.tgz | tar -xvz -C $SDK
ls -l $SDK
( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | $SDK_DIR/tools/android update sdk --all --no-ui --force --filter "$ANDROID_PKG"
echo "ANDROID_HOME=$SDK_DIR" >> /etc/environment
echo "android.platform.base=$SDK_DIR" >> /etc/environment
echo "export ANDROID_HOME=$SDK_DIR" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment