Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
68631cea
Commit
68631cea
authored
Apr 09, 2017
by
Daniel Agar
Committed by
GitHub
Apr 09, 2017
Browse files
android separate daily build deploy (#4947)
parent
6742bd85
Changes
3
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
68631cea
...
...
@@ -187,21 +187,17 @@ script:
after_success
:
-
cd ${TRAVIS_BUILD_DIR}
# android google play deploy
-
export GOOGLE_PLAY_TRACK=none;
# master development builds to beta track
# tagged releases first to beta track then manually move to production
-
if [ "${TRAVIS_TAG}" ]; then
GOOGLE_PLAY_
TRACK=beta;
el
if [ "${TRAVIS_BRANCH}" = "master" ]; then
GOOGLE_PLAY_
TRACK=
beta
;
GOOGLE_PLAY_
PKG=org.mavlink.qgroundcontrol
el
se
GOOGLE_PLAY_
PKG=org.mavlink.qgroundcontrol
beta
fi
-
if [[ "${SPEC}" = "android-g++" && "${TRAVIS_PULL_REQUEST}" = "false" && "${
GOOGLE_PLAY_TRACK
}"
!
= "
none
" ]]; then
-
if [[ "${SPEC}" = "android-g++" && "${TRAVIS_PULL_REQUEST}" = "false" && "${
TRAVIS_BRANCH
}" = "
master
" ]]; then
pip install --user google-api-python-client PyOpenSSL &&
echo "Google Play Track:" ${GOOGLE_PLAY_TRACK} &&
openssl aes-256-cbc -K $encrypted_25db6eb7c3fd_key -iv $encrypted_25db6eb7c3fd_iv -in android/Google_Play_Android_Developer-4432a3c4f5d1.json.enc -out android/Google_Play_Android_Developer-4432a3c4f5d1.json -d &&
./tools/google_play_upload.py ${GOOGLE_PLAY_
TRACK} org.mavlink.qgroundcontrol
${SHADOW_BUILD_DIR}/release/package/QGroundControl.apk;
./tools/google_play_upload.py
production
${GOOGLE_PLAY_
PKG}
${SHADOW_BUILD_DIR}/release/package/QGroundControl.apk;
fi
before_deploy
:
...
...
resources/icons/android_dev_512x512.png
0 → 100644
View file @
68631cea
37.1 KB
tools/update_android_version.sh
View file @
68631cea
...
...
@@ -10,6 +10,15 @@ VERSIONCODE=$(($(($patch*1000)) + $VERSIONCODE))
VERSIONCODE
=
$(($((
$dev
))
+
$VERSIONCODE
))
MANIFEST_FILE
=
android/AndroidManifest.xml
# manifest package
if
[
${#
dev
}
-gt
0
]
;
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
"
fi
# android:versionCode
if
[
-n
"
$VERSIONCODE
"
]
;
then
sed
-i
-e
"s/android:versionCode=
\"
[0-9][0-9]*
\"
/android:versionCode=
\"
$VERSIONCODE
\"
/"
$MANIFEST_FILE
echo
"Android version:
${
VERSIONCODE
}
"
...
...
@@ -18,6 +27,7 @@ else
exit
0
# don't cause the build to fail
fi
# android:versionName
if
[
-n
"
$VERSIONNAME
"
]
;
then
sed
-i
-e
's/versionName *= *"[^"]*"/versionName="'
$VERSIONNAME
'"/'
$MANIFEST_FILE
echo
"Android name:
${
VERSIONNAME
}
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment