Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
dc4fd368
Unverified
Commit
dc4fd368
authored
Aug 28, 2019
by
Don Gagne
Committed by
GitHub
Aug 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7734 from DonLakeFlyer/Android3264
Android: Support build/deploy both 32 and 64 bit builds
parents
1c6d3477
00df3fc8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
.travis.yml
.travis.yml
+7
-3
QGCInstaller.pri
QGCInstaller.pri
+8
-2
update_android_version.sh
tools/update_android_version.sh
+3
-0
No files found.
.travis.yml
View file @
dc4fd368
...
...
@@ -25,7 +25,11 @@ matrix:
sudo
:
required
-
dist
:
trusty
language
:
android
env
:
SPEC=android-clang CONFIG=installer
env
:
SPEC=android-clang CONFIG=installer BITNESS=32
sudo
:
false
-
dist
:
trusty
language
:
android
env
:
SPEC=android-clang CONFIG=installer BITNESS=64
sudo
:
false
-
os
:
osx
osx_image
:
xcode9.2
...
...
@@ -141,7 +145,7 @@ before_script:
-
if [ "${SPEC}" = "android-clang" ]; then
git remote set-branches origin 'master' &&
git fetch --tags origin master &&
./tools/update_android_version.sh;
./tools/update_android_version.sh
${BITNESS}
;
fi
script
:
...
...
@@ -185,7 +189,7 @@ after_success:
pip install --user --upgrade oauth2client &&
pip install --user google-api-python-client pyopenssl ndg-httpsclient pyasn1 &&
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 production ${GOOGLE_PLAY_PKG} ${SHADOW_BUILD_DIR}/release/package/QGroundControl.apk;
./tools/google_play_upload.py production ${GOOGLE_PLAY_PKG} ${SHADOW_BUILD_DIR}/release/package/QGroundControl
${BITNESS}
.apk;
fi
before_deploy
:
...
...
QGCInstaller.pri
View file @
dc4fd368
...
...
@@ -52,10 +52,16 @@ installer {
QMAKE_POST_LINK += && tar --warning=no-file-changed -cjf release/package/QGroundControl.tar.bz2 release --exclude='package' --transform 's/release/qgroundcontrol/'
}
AndroidBuild {
#-- TODO: This uses hardcoded paths. It should use $${DESTDIR}
QMAKE_POST_LINK += && mkdir -p $${DESTDIR}/package
QMAKE_POST_LINK += && make install INSTALL_ROOT=$${DESTDIR}/android-build/
QMAKE_POST_LINK += && androiddeployqt --input android-libQGroundControl.so-deployment-settings.json --output $${DESTDIR}/android-build --deployment bundled --gradle --sign $${BASEDIR}/android/android_release.keystore dagar --storepass $$(ANDROID_STOREPASS)
QMAKE_POST_LINK += && cp $${DESTDIR}/android-build/build/outputs/apk/android-build-release-signed.apk $${DESTDIR}/package/QGroundControl.apk
contains(QT_ARCH, arm) {
QGC_APK_BITNESS = "32"
} else:contains(QT_ARCH, arm64) {
QGC_APK_BITNESS = "64"
} else {
QGC_APK_BITNESS = ""
}
QMAKE_POST_LINK += && cp $${DESTDIR}/android-build/build/outputs/apk/android-build-release-signed.apk $${DESTDIR}/package/QGroundControl$${QGC_APK_BITNESS}.apk
}
}
tools/update_android_version.sh
View file @
dc4fd368
...
...
@@ -9,6 +9,9 @@ VERSIONCODE=$(($(($minor*10000)) + $VERSIONCODE))
VERSIONCODE
=
$(($((
$patch
*
1000
))
+
$VERSIONCODE
))
VERSIONCODE
=
$(($((
$dev
))
+
$VERSIONCODE
))
# Command line specifies either 32 or 64 bit version
VERSIONCODE
=
$1$VERSIONCODE
MANIFEST_FILE
=
android/AndroidManifest.xml
# manifest package
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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