From 6ccdfff0af9d82841c536ef38036bfc34f2ca90d Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Mon, 9 Mar 2015 14:04:30 -0700 Subject: [PATCH] Android build script works with pre-releases present. build_apk.sh assumed pre-releases would be sorted towards the end, but instead they end up at the front (sort -n) causing the api selection loop to halt early. bug: 19213196 Change-Id: I210a18c16e81880229f154c4613f8b97d90ac9bd tested: on Linux. --- android/build_apk.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/android/build_apk.sh b/android/build_apk.sh index 94a7275fa..4967ee6dd 100755 --- a/android/build_apk.sh +++ b/android/build_apk.sh @@ -243,12 +243,8 @@ select_android_build_target() { android_build_target="android-${android_target}" break fi - else - # The API version is a letter - # Letters are sorted to the end by 'sort -n' - # so we're out of numbered platforms. Use this one. - android_build_target="android-${android_target}" - break + # else + # The API version is a letter, so skip it. fi done if [[ "${android_build_target}" == "" ]]; then