X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/59f0d218a6ff34c80cf898f6d7ac62555ba8eb11..954a5f0ea29b5f2ad9636c142cd439419074edb0:/install-sdk.sh diff --git a/install-sdk.sh b/install-sdk.sh index 094a2a92..af5b9522 100755 --- a/install-sdk.sh +++ b/install-sdk.sh @@ -1,3 +1,8 @@ #!/bin/sh -android update sdk --all --no-https --no-ui --filter build-tools-22.0.1,android-21 +# Read settings from .termuxrc if existing +test -f $HOME/.termuxrc && . $HOME/.termuxrc +: ${ANDROID_HOME:="${HOME}/lib/android-sdk"} + +$ANDROID_HOME/tools/android update sdk --no-ui --all --no-https -t "build-tools-23.0.2" +$ANDROID_HOME/tools/android update sdk --no-ui --all --no-https -t "android-21"