diff --git a/.travis.yml b/.travis.yml index 312a815c032490848b0a8c1d6068065caa708377..b5e1c8dd31abd27bd855c78898db09f1fff14edb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -162,7 +162,7 @@ before_script: - if [ "${SPEC}" = "android-clang" ]; then git remote set-branches origin 'master' && git fetch --tags origin master && - ./tools/update_android_version.sh ${BITNESS}; + ./tools/update_android_version.sh ${BITNESS} ${TRAVIS_BRANCH}; fi script: diff --git a/tools/update_android_version.sh b/tools/update_android_version.sh index 3e7692803d401561614a35c7c8cbdcdcd2133c84..262e9d2b3bac82fcc9501ef2f4d7d1c47ed4fdab 100755 --- a/tools/update_android_version.sh +++ b/tools/update_android_version.sh @@ -15,7 +15,7 @@ VERSIONCODE=$1$VERSIONCODE MANIFEST_FILE=android/AndroidManifest.xml # manifest package -if [ ${#dev} -gt 0 ]; then +if [ "$2" = "master" ]; then QGC_PKG_NAME="org.mavlink.qgroundcontrolbeta" sed -i -e 's/package *= *"[^"]*"/package="'$QGC_PKG_NAME'"/' $MANIFEST_FILE echo "Android package name: $QGC_PKG_NAME"