- if [ `uname` = Darwin ]; then
- curl --fail --retry 3 -o android-sdk.zip https://dl.google.com/android/android-sdk_r24.4.1-macosx.zip
- rm -Rf android-sdk-macosx
- unzip -q android-sdk.zip
- mv android-sdk-macosx `basename $ANDROID_HOME`
- rm android-sdk.zip
- else
- curl --fail --retry 3 -o android-sdk.tgz https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
- rm -Rf android-sdk-linux
- tar xzf android-sdk.tgz
- mv android-sdk-linux `basename $ANDROID_HOME`
- rm android-sdk.tgz
- fi
+ curl --fail --retry 3 -o tools.zip https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
+ rm -Rf android-sdk
+ unzip -q tools.zip -d android-sdk
+ rm tools.zip