- #!/bin/sh -e
-
- # fix for https://code.google.com/p/android/issues/detail?id=223424
- mkdir -p ~/.android
-
- # download android SDK
- echo "Downloading Android SDK"
- curl --location https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip | tar -x -z -C $HOME
-
- # copy licenses
- echo "Copying Android licenses"
- scriptdir=`dirname $0`
- mkdir -p "${ANDROID_HOME}"/licenses
- cp "${scriptdir}"/android-sdk-licenses/* "${ANDROID_HOME}"/licenses
|