printf"\e[31m%s\e[30m\n""Did not pass android build type, using default: ${_DEFAULT_ANDROID_BUILD}"
_SHOW_USAGE_INFO=1
else
_DEFAULT_ANDROID_BUILD=$1
fi
if[ -z ${2+x}];then
printf"\e[31m%s\e[30m\n""Did not pass game name, using default: ${_DEFAULT_GAME_NAME}"
_SHOW_USAGE_INFO=1
else
_DEFAULT_GAME_NAME=$2
fi
if[ -z ${3+x}];then
printf"\e[31m%s\e[30m\n""Did not pass build type, using default: ${_DEFAULT_BUILD_TYPE}"
_SHOW_USAGE_INFO=1
else
_DEFAULT_BUILD_TYPE=$3
fi
_ANDROID_JAR_KEY_NAME=~/.android/debug.keystore
_ANDROID_JAR_KEY_PW=android
_ANDROID_JAR_KEY_ALIAS=androiddebugkey
if[ -z ${TW_KEY_NAME+x}];then
printf"\e[31m%s\e[30m\n""Did not pass a key for the jar signer, using default: ${_ANDROID_JAR_KEY_NAME}"
else
_ANDROID_JAR_KEY_NAME=$TW_KEY_NAME
fi
if[ -z ${TW_KEY_PW+x}];then
printf"\e[31m%s\e[30m\n""Did not pass a key pw for the jar signer, using default: ${_ANDROID_JAR_KEY_PW}"
else
_ANDROID_JAR_KEY_PW=$TW_KEY_PW
fi
if[ -z ${TW_KEY_ALIAS+x}];then
printf"\e[31m%s\e[30m\n""Did not pass a key alias for the jar signer, using default: ${_ANDROID_JAR_KEY_ALIAS}"
else
_ANDROID_JAR_KEY_ALIAS=$TW_KEY_ALIAS
fi
exportTW_KEY_NAME="${_ANDROID_JAR_KEY_NAME}"
exportTW_KEY_PW=$_ANDROID_JAR_KEY_PW
exportTW_KEY_ALIAS=$_ANDROID_JAR_KEY_ALIAS
_ANDROID_VERSION_CODE=1
if[ -z ${TW_VERSION_CODE+x}];then
printf"\e[31m%s\e[30m\n""Did not pass a version code, using default: ${_ANDROID_VERSION_CODE}"
else
_ANDROID_VERSION_CODE=$TW_VERSION_CODE
fi
exportTW_VERSION_CODE=$_ANDROID_VERSION_CODE
_ANDROID_VERSION_NAME="1.0"
if[ -z ${TW_VERSION_NAME+x}];then
printf"\e[31m%s\e[30m\n""Did not pass a version name, using default: ${_ANDROID_VERSION_NAME}"
else
_ANDROID_VERSION_NAME=$TW_VERSION_NAME
fi
exportTW_VERSION_NAME=$_ANDROID_VERSION_NAME
printf"\e[31m%s\e[1m\n""Building with setting, for arch: ${_DEFAULT_ANDROID_BUILD}, with build type: ${_DEFAULT_BUILD_TYPE}, with name: ${_DEFAULT_GAME_NAME}"