xwords/xwords4/android/scripts/setup_local_props.sh
Eric House b56c4d13b4 build with SDK version 23
Meant using NotificationCompat, dropping FloatMath, and changing a bunch
of build config stuff. Not done for gradle builds yet. Currently crashes
on a new install until you go into Apps/Crosswords/Permissions and turn
on the four "dangerous" ones it's using. Now the work is to check for
and request missing permissions on demand.
2016-10-31 07:46:04 -07:00

34 lines
497 B
Bash
Executable file

#!/bin/sh
set -u -e
TARGET="android-23"
usage() {
echo "usage: $0 [--target TARGET]"
exit 1
}
while [ $# -ge 1 ]; do
echo $1
case $1 in
--target)
shift
TARGET=$1
;;
*)
echo "default: got $1"
usage
;;
esac
shift
done
# create local.properties
android update project --path . --target "$TARGET"
echo "local.properties looks like this:"
echo ""
cat local.properties
echo ""
exit 0