Update configure-android for Android NDK 22, folder 'platforms' is now removed, the script needs it to detect latest platform version. (#2739)

This commit is contained in:
Nanang Izzuddin 2021-06-29 15:00:34 +07:00 committed by GitHub
parent cb35c79f21
commit dfc511df26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -42,8 +42,14 @@ fi
NDK_VER=`sed -n -E 's/^Pkg.Revision *= *([0-9]+).*/\1/p' ${ANDROID_NDK_ROOT}/source.properties`
if test "x$APP_PLATFORM" = "x"; then
APP_PLATFORM=`ls ${ANDROID_NDK_ROOT}/platforms/ | sed 's/android-//' | sort -gr | head -1`
APP_PLATFORM="android-${APP_PLATFORM}"
if test -d ${ANDROID_NDK_ROOT}/platforms; then
APP_PLATFORM=`ls ${ANDROID_NDK_ROOT}/platforms/ | sed 's/android-//' | sort -gr | head -1`
fi
if test "x$APP_PLATFORM" != "x"; then
APP_PLATFORM="android-${APP_PLATFORM}"
else
APP_PLATFORM="latest"
fi
echo "$F: APP_PLATFORM not specified, using ${APP_PLATFORM}"
fi