Skip to content

Commit 8a17607

Browse files
authored
Update default Android API level to at least 23 (#4677)
Some commonly used third-party libraries (e.g: OpenSSL, OpenH264) require a minimum API level of 23, while the default API level may be too low (e.g: for NDK r27c, it is 21).
1 parent 5410a92 commit 8a17607

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure-android

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if test "$*" = "--help" -o "$*" = "-h"; then
2121
echo " android-9. By default, configure will use the :"
2222
echo " - maximum platform level detected if ndk < r21"
2323
echo " - minimum platform level detected if ndk >= r21"
24+
echo " (will use 23 if minimum platform level < 23)"
2425
echo " TARGET_ABI Optionally specify a single target architecture,"
2526
echo " e.g. armeabi-v7a, arm64-v8a, mips, x86. By default, "
2627
echo " the target architecture is arm64-v8a."
@@ -54,6 +55,9 @@ if test "x$APP_PLATFORM" = "x"; then
5455
fi
5556
fi
5657
if test "x$APP_PLATFORM" != "x"; then
58+
if [ "$APP_PLATFORM" -lt "23" ]; then
59+
APP_PLATFORM="23"
60+
fi
5761
APP_PLATFORM="android-${APP_PLATFORM}"
5862
else
5963
APP_PLATFORM="latest"

0 commit comments

Comments
 (0)