|
|
|
@ -1,5 +1,8 @@
@@ -1,5 +1,8 @@
|
|
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
|
|
# this requires `master` in the git tree |
|
|
|
|
# travis-ci branch builds are unable to set the version properly |
|
|
|
|
|
|
|
|
|
MANIFEST_FILE=android/AndroidManifest.xml |
|
|
|
|
|
|
|
|
|
VERSIONCODE=`git rev-list master --first-parent --count` |
|
|
|
@ -13,7 +16,7 @@ if [ -n "$VERSIONCODE" ]; then
@@ -13,7 +16,7 @@ if [ -n "$VERSIONCODE" ]; then
|
|
|
|
|
echo "Android version: ${VERSIONCODE}" |
|
|
|
|
else |
|
|
|
|
echo "Error versionCode empty" |
|
|
|
|
exit 1 |
|
|
|
|
exit 0 # don't cause the build to fail |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ -n "$VERSIONNAME" ]; then |
|
|
|
@ -21,5 +24,5 @@ if [ -n "$VERSIONNAME" ]; then
@@ -21,5 +24,5 @@ if [ -n "$VERSIONNAME" ]; then
|
|
|
|
|
echo "Android name: ${VERSIONNAME}" |
|
|
|
|
else |
|
|
|
|
echo "Error versionName empty" |
|
|
|
|
exit 1 |
|
|
|
|
exit 0 # don't cause the build to fail |
|
|
|
|
fi |
|
|
|
|