Usage:
Run get_ndk_version.sh
and assert_ndk_version.sh
for full usage guide and also check the scripts themselves.
Also check test.sh
for examples on how to use the commands in bash scripts.
Get Android NDK full version:
get_ndk_version.sh a "$ANDROID_NDK_ROOT"
Get Android NDK major version:
get_ndk_version m "$ANDROID_NDK_ROOT"
Check if Android NDK version is atleast 19.0.0:
assert_ndk_version.sh 19.0.0 "$ANDROID_NDK_ROOT"
You can download a release here.
Currently used in this project.
Credits for original script:
jorgenpt