Fix NDK download

Summary: Fix NDK download for Travis.

Reviewed By: emilsjolander

Differential Revision: D6020352

fbshipit-source-id: c7523c0afb18d675fc2443e133d5ab63109fec7b
This commit is contained in:
Pascal Hartig
2017-10-11 08:08:52 -07:00
committed by Facebook Github Bot
parent fdd1dbe3a9
commit 32f071c2ad

View File

@@ -32,10 +32,10 @@ function installAndroidSDK {
rm $TMP rm $TMP
fi fi
if [[ ! -d "$ANDROID_NDK_REPOSITORY/android-ndk-r13b" ]]; then if [[ ! -d "$ANDROID_NDK_REPOSITORY/android-ndk-r15c" ]]; then
TMP=/tmp/ndk$$.zip TMP=/tmp/ndk$$.zip
mkdir -p "$ANDROID_NDK_REPOSITORY" mkdir -p "$ANDROID_NDK_REPOSITORY"
download 'https://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip' $TMP download 'https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip' $TMP
unzip -qod "$ANDROID_NDK_REPOSITORY" "$TMP" unzip -qod "$ANDROID_NDK_REPOSITORY" "$TMP"
rm $TMP rm $TMP
fi fi