Commit 30cebe79 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Download BuildTools/AndroidSupport

Gradle does not fetch those, for no reason, but it enforces the numbers.
Therefore, here is a way to get them, without the UI.

This is not activated by default, because I have not found the way to
download without redownloading if present
parent 25bdb0da
......@@ -88,6 +88,16 @@ if [ ! -d "gradle/wrapper" ]; then
rm -rf gradle-${GRADLE_VERSION}-all.zip gradle-${GRADLE_VERSION}
fi
###############################
# Install Gradle dependencies
###############################
if [ ! -z "$BUILD_TOOLS" ]; then
SUPPORT=`$ANDROID_SDK/tools/android list sdk -u --all | grep -i support | cut -d'-' -f1 | xargs | sed 's/ /,/g'`
echo "y" | $ANDROID_SDK/tools/android update sdk --no-ui --all --filter $SUPPORT
BUILDTOOLS=`$ANDROID_SDK/tools/android list sdk -u --all | grep -i 21.1.1 | cut -d'-' -f1`
echo "y" | $ANDROID_SDK/tools/android update sdk --no-ui --all --filter $BUILDTOOLS
fi
####################
# Configure gradle #
####################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment