mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Android: make sure we have the correct platforms installed
This should fix the current Travis build failures for Android. It is odd how we have ANDROID_PLATFORM and ANDROID_PLATFORMS, buf for now all I care about is that the Travis build completes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0f87a7073b
commit
51e44d4846
1 changed files with 5 additions and 3 deletions
|
@ -77,7 +77,9 @@ if [ ! -d "$ANDROID_NDK" ] ; then
|
||||||
unzip -q "$NDK_BINARIES"
|
unzip -q "$NDK_BINARIES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$ANDROID_SDK"/build-tools/"${ANDROID_BUILDTOOLS_REVISION}" ] ; then
|
if [ ! -d "$ANDROID_SDK"/build-tools/"${ANDROID_BUILDTOOLS_REVISION}" ] ||
|
||||||
|
[ ! -d "$ANDROID_SDK"/platforms/android-"${ANDROID_PLATFORMS}" ] ||
|
||||||
|
[ ! -d "$ANDROID_SDK"/platforms/android-"${ANDROID_PLATFORM}" ] ; then
|
||||||
if [ ! -d "$ANDROID_SDK" ] ; then
|
if [ ! -d "$ANDROID_SDK" ] ; then
|
||||||
if [ ! -f "$SDK_TOOLS" ] ; then
|
if [ ! -f "$SDK_TOOLS" ] ; then
|
||||||
wget -q https://dl.google.com/android/repository/"$SDK_TOOLS"
|
wget -q https://dl.google.com/android/repository/"$SDK_TOOLS"
|
||||||
|
@ -87,11 +89,11 @@ if [ ! -d "$ANDROID_SDK"/build-tools/"${ANDROID_BUILDTOOLS_REVISION}" ] ; then
|
||||||
unzip -q ../"$SDK_TOOLS"
|
unzip -q ../"$SDK_TOOLS"
|
||||||
yes | tools/bin/sdkmanager --licenses > /dev/null 2>&1 || echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > licenses/android-sdk-license
|
yes | tools/bin/sdkmanager --licenses > /dev/null 2>&1 || echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > licenses/android-sdk-license
|
||||||
cat licenses/android-sdk-license
|
cat licenses/android-sdk-license
|
||||||
tools/bin/sdkmanager tools platform-tools 'platforms;'"${ANDROID_PLATFORMS}" 'build-tools;'"${ANDROID_BUILDTOOLS_REVISION}"
|
yes | tools/bin/sdkmanager tools platform-tools 'platforms;'"${ANDROID_PLATFORM}" 'platforms;'"${ANDROID_PLATFORMS}" 'build-tools;'"${ANDROID_BUILDTOOLS_REVISION}" > /dev/null
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
pushd "$ANDROID_SDK"
|
pushd "$ANDROID_SDK"
|
||||||
tools/bin/sdkmanager tools platform-tools 'platforms;'"${ANDROID_PLATFORMS}" 'build-tools;'"${ANDROID_BUILDTOOLS_REVISION}"
|
yes | tools/bin/sdkmanager tools platform-tools 'platforms;'"${ANDROID_PLATFORM}" 'platforms;'"${ANDROID_PLATFORMS}" 'build-tools;'"${ANDROID_BUILDTOOLS_REVISION}" > /dev/null
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue