Remove scripts/bintray-upload-deb
[termux-packages] / scripts / setup-android-sdk.sh
index b9303ea..7a84090 100755 (executable)
@@ -10,24 +10,25 @@ if [ ! -d $ANDROID_HOME ]; then
        mkdir -p $ANDROID_HOME
        cd $ANDROID_HOME/..
        rm -Rf `basename $ANDROID_HOME`
-       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
+       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
 fi
 
 if [ ! -d $NDK ]; then
        mkdir -p $NDK
        cd $NDK/..
        rm -Rf `basename $NDK`
-       curl --fail --retry 3 -o ndk.zip http://dl.google.com/android/repository/android-ndk-r12-linux-x86_64.zip
+       NDK_VERSION=r14
+       curl --fail --retry 3 -o ndk.zip \
+               http://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-`uname`-x86_64.zip
 
-       rm -Rf android-ndk-r12
+       rm -Rf android-ndk-$NDK_VERSION
        unzip -q ndk.zip
-       mv android-ndk-r12 `basename $NDK`
+       mv android-ndk-$NDK_VERSION `basename $NDK`
        rm ndk.zip
 fi
 
-echo y | $ANDROID_HOME/tools/android update sdk --no-ui --all --no-https -t "build-tools-23.0.3,android-23"
+echo y | $ANDROID_HOME/tools/android update sdk --no-ui --all --no-https -t "build-tools-25.0.1,android-24"