2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

build-package: use 29.0.3 dx utility for dalvikize_jar()

This commit is contained in:
Christopher Roy Bratusek 2020-09-26 20:48:23 +02:00
parent 716ee81e66
commit 3fb619cf2a

View File

@ -182,11 +182,11 @@ increase_module_version () {
dalvikize_jar () {
[ -z "${ANDROID_HOME}" ] && error "ANDROID_HOME is not set!"
[ ! -f "${ANDROID_HOME}/build-tools/28.0.3/dx" ] && error "can't find 'dx' binary in \"${ANDROID_HOME}/build-tools/28.0.3\"!"
[ ! -f "${ANDROID_HOME}/build-tools/29.0.3/dx" ] && error "can't find 'dx' binary in \"${ANDROID_HOME}/build-tools/29.0.3\"!"
[ ! -z "${2}" ] && local dx_extra_arg="--min-sdk-version=${2}"
if [ -f "${1}" ]; then
${ANDROID_HOME}/build-tools/28.0.3/dx --dex \
${ANDROID_HOME}/build-tools/29.0.3/dx --dex \
--output="$(basename "${1}" .jar).dex" \
${dx_extra_arg} "${1}"
else