Skip to content

Commit

Permalink
Android build script works with pre-releases present.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Wouter van Oortmerssen committed Mar 9, 2015
1 parent 71e97b7 commit 6ccdfff
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions android/build_apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ccdfff

Please sign in to comment.