summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Cotty <raphael.cotty@gmail.com>2022-01-30 23:22:16 +0100
committerRaphaƫl Cotty <raphael.cotty@gmail.com>2022-02-06 13:37:15 +0000
commit916ff690b3acaf89a499628b8489f2f2d5649bde (patch)
treeff5d00e7536a12f2ac80e85e804f4f5fe24fab87
parente0502b32c49d877a790b6f36ddc3f63e5d2f1bc2 (diff)
downloadqbs-916ff690b3acaf89a499628b8489f2f2d5649bde.tar.gz
Add Qt 6.3 Android image and update ANDROID_PLATFORM
Add docker image focal-android-630 and corresponding github action. Update ANDROID_PLATFORM to "android-30" because Qt AndroidManifest uses property allowNativeHeapPointerTagging (QTBUG-97009) since 6.2.1 which was added in API30. Also update android test because bug QTBUG-97834 was solved in Qt 6.3. Change-Id: Id45701433a779d2c6cb8dfdbfb0676e2daad6f88 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
-rw-r--r--.github/workflows/main.yml6
-rw-r--r--docker-compose.yml21
-rw-r--r--docker/focal/test-android.Dockerfile2
-rw-r--r--tests/auto/blackbox/tst_blackboxandroid.cpp50
4 files changed, 53 insertions, 26 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8dd4d1dfb..7199ea6c3 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -365,6 +365,12 @@ jobs:
script: './scripts/test-qt-for-android.sh',
}
- {
+ name: 'Run Android tests (Qt 6.3.0)',
+ image: 'focal-android-630',
+ profile: '',
+ script: './scripts/test-qt-for-android.sh',
+ }
+ - {
name: 'Run Android tests (ndk r19c)',
image: 'focal-android-ndk-r19c',
profile: '',
diff --git a/docker-compose.yml b/docker-compose.yml
index df8121d6a..ed294dfd8 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -54,7 +54,7 @@ services:
focal-android-513:
<< : *linux
hostname: focal-android
- image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-5.13.2-3
+ image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-5.13.2-4
build:
dockerfile: docker/focal/test-android.Dockerfile
context: .
@@ -65,7 +65,7 @@ services:
focal-android-514:
<< : *linux
hostname: focal-android
- image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-5.14.0-3
+ image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-5.14.0-4
build:
dockerfile: docker/focal/test-android.Dockerfile
context: .
@@ -76,7 +76,7 @@ services:
focal-android-515:
<< : *linux
hostname: focal-android
- image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-5.15.1-3
+ image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-5.15.1-4
build:
dockerfile: docker/focal/test-android.Dockerfile
context: .
@@ -87,7 +87,7 @@ services:
focal-android-600:
<< : *linux
hostname: focal-android
- image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-6.0.0-3
+ image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-6.0.0-4
build:
dockerfile: docker/focal/test-android.Dockerfile
context: .
@@ -98,7 +98,7 @@ services:
focal-android-620:
<< : *linux
hostname: focal-android
- image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-6.2.0-0
+ image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-6.2.0-4
build:
dockerfile: docker/focal/test-android.Dockerfile
context: .
@@ -106,6 +106,17 @@ services:
QT_VERSION: 6.2.0
ANDROID_NDK_VERSION: 23.0.7599858
+ focal-android-630:
+ << : *linux
+ hostname: focal-android
+ image: ${DOCKER_USER:-qbsbuild}/qbsdev:focal-android-6.3.0-0
+ build:
+ dockerfile: docker/focal/test-android.Dockerfile
+ context: .
+ args:
+ QT_VERSION: 6.3.0
+ ANDROID_NDK_VERSION: 23.0.7599858
+
focal-android-ndk-r19c:
<< : *linux
hostname: focal-android
diff --git a/docker/focal/test-android.Dockerfile b/docker/focal/test-android.Dockerfile
index 4f48dcf3f..31f4eb773 100644
--- a/docker/focal/test-android.Dockerfile
+++ b/docker/focal/test-android.Dockerfile
@@ -69,7 +69,7 @@ RUN curl -s https://dl.google.com/android/repository/commandlinetools-linux-${CO
rm -v ${ANDROID_HOME}/commandlinetools.zip
# Accept SDK license
-ARG ANDROID_PLATFORM="android-29"
+ARG ANDROID_PLATFORM="android-30"
ARG BUILD_TOOLS="29.0.2"
RUN yes | sdkmanager "--sdk_root=${ANDROID_HOME}" --verbose --licenses && \
sdkmanager "--sdk_root=${ANDROID_HOME}" --update && \
diff --git a/tests/auto/blackbox/tst_blackboxandroid.cpp b/tests/auto/blackbox/tst_blackboxandroid.cpp
index 812e005bb..06027a100 100644
--- a/tests/auto/blackbox/tst_blackboxandroid.cpp
+++ b/tests/auto/blackbox/tst_blackboxandroid.cpp
@@ -613,9 +613,22 @@ void TestBlackboxAndroid::android_data()
"lib/${ARCH}/libplugins_imageformats_qtiff_${ARCH}.so",
"lib/${ARCH}/libplugins_imageformats_qwbmp_${ARCH}.so",
"lib/${ARCH}/libplugins_imageformats_qwebp_${ARCH}.so"}, generateAab);
- if (version >= qbs::Version(6, 0)) {
+ if (version >= qbs::Version(6, 0))
expectedFile << expandArchs(ndkArchsForQt, {
"lib/${ARCH}/libQt6OpenGL_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQml_Models_modelsplugin_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQml_WorkerScript_workerscriptplugin_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQml_qmlplugin_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQuick_qtquick2plugin_${ARCH}.so"}, generateAab);
+ if (version >= qbs::Version(6, 2))
+ expectedFile << expandArchs(ndkArchsForQt, {
+ "lib/${ARCH}/libplugins_networkinformation_qandroidnetworkinformation_${ARCH}.so",
+ "lib/${ARCH}/libplugins_tls_qcertonlybackend_${ARCH}.so",
+ "lib/${ARCH}/libplugins_tls_qopensslbackend_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQuick_Window_quickwindowplugin_${ARCH}.so",
+ }, generateAab);
+ if (version >= qbs::Version(6, 0) && version < qbs::Version(6, 3)) {
+ expectedFile << expandArchs(ndkArchsForQt, {
"lib/${ARCH}/libQt6QuickControls2Impl_${ARCH}.so",
"lib/${ARCH}/libQt6QuickControls2_${ARCH}.so",
"lib/${ARCH}/libQt6QuickParticles_${ARCH}.so",
@@ -623,9 +636,6 @@ void TestBlackboxAndroid::android_data()
"lib/${ARCH}/libQt6QuickTemplates2_${ARCH}.so",
"lib/${ARCH}/libQt6Sql_${ARCH}.so",
"lib/${ARCH}/libplugins_sqldrivers_qsqlite_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQml_Models_modelsplugin_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQml_WorkerScript_workerscriptplugin_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQml_qmlplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Controls_Basic_impl_qtquickcontrols2basicstyleimplplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Controls_Basic_qtquickcontrols2basicstyleplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Controls_Fusion_impl_qtquickcontrols2fusionstyleimplplugin_${ARCH}.so",
@@ -644,11 +654,9 @@ void TestBlackboxAndroid::android_data()
"lib/${ARCH}/libqml_QtQuick_Shapes_qmlshapesplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Templates_qtquicktemplates2plugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Timeline_qtquicktimelineplugin_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQuick_Layouts_qquicklayoutsplugin_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQuick_qtquick2plugin_${ARCH}.so"}, generateAab);
+ "lib/${ARCH}/libqml_QtQuick_Layouts_qquicklayoutsplugin_${ARCH}.so"}, generateAab);
if (version >= qbs::Version(6, 2))
expectedFile << expandArchs(ndkArchsForQt, {
- "lib/${ARCH}/libqml_QtQuick_Window_quickwindowplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_tooling_quicktoolingplugin_${ARCH}.so",
"lib/${ARCH}/libQt6QmlLocalStorage_${ARCH}.so",
"lib/${ARCH}/libQt6QmlXmlListModel_${ARCH}.so",
@@ -657,9 +665,6 @@ void TestBlackboxAndroid::android_data()
"lib/${ARCH}/libQt6QuickDialogs2_${ARCH}.so",
"lib/${ARCH}/libQt6QuickLayouts_${ARCH}.so",
"lib/${ARCH}/libQt6QuickTimeline_${ARCH}.so",
- "lib/${ARCH}/libplugins_networkinformation_qandroidnetworkinformation_${ARCH}.so",
- "lib/${ARCH}/libplugins_tls_qcertonlybackend_${ARCH}.so",
- "lib/${ARCH}/libplugins_tls_qopensslbackend_${ARCH}.so",
"lib/${ARCH}/libqml_QtQml_XmlListModel_qmlxmllistmodelplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Dialogs_qtquickdialogsplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Dialogs_quickimpl_qtquickdialogs2quickimplplugin_${ARCH}.so"},
@@ -769,9 +774,22 @@ void TestBlackboxAndroid::android_data()
"lib/${ARCH}/libplugins_imageformats_qtiff_${ARCH}.so",
"lib/${ARCH}/libplugins_imageformats_qwbmp_${ARCH}.so",
"lib/${ARCH}/libplugins_imageformats_qwebp_${ARCH}.so"}, generateAab);
- if (version >= qbs::Version(6, 0)) {
+ if (version >= qbs::Version(6, 0))
expectedFile << expandArchs(ndkArchsForQt, {
"lib/${ARCH}/libQt6OpenGL_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQml_Models_modelsplugin_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQml_WorkerScript_workerscriptplugin_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQml_qmlplugin_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQuick_qtquick2plugin_${ARCH}.so"}, generateAab);
+ if (version >= qbs::Version(6, 2))
+ expectedFile << expandArchs(ndkArchsForQt, {
+ "lib/${ARCH}/libplugins_networkinformation_qandroidnetworkinformation_${ARCH}.so",
+ "lib/${ARCH}/libplugins_tls_qcertonlybackend_${ARCH}.so",
+ "lib/${ARCH}/libplugins_tls_qopensslbackend_${ARCH}.so",
+ "lib/${ARCH}/libqml_QtQuick_Window_quickwindowplugin_${ARCH}.so",
+ }, generateAab);
+ if (version >= qbs::Version(6, 0) && version < qbs::Version(6, 3)) {
+ expectedFile << expandArchs(ndkArchsForQt, {
"lib/${ARCH}/libQt6QuickControls2Impl_${ARCH}.so",
"lib/${ARCH}/libQt6QuickControls2_${ARCH}.so",
"lib/${ARCH}/libQt6QuickParticles_${ARCH}.so",
@@ -779,9 +797,6 @@ void TestBlackboxAndroid::android_data()
"lib/${ARCH}/libQt6QuickTemplates2_${ARCH}.so",
"lib/${ARCH}/libQt6Sql_${ARCH}.so",
"lib/${ARCH}/libplugins_sqldrivers_qsqlite_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQml_Models_modelsplugin_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQml_WorkerScript_workerscriptplugin_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQml_qmlplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Controls_Basic_impl_qtquickcontrols2basicstyleimplplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Controls_Basic_qtquickcontrols2basicstyleplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Controls_Fusion_impl_qtquickcontrols2fusionstyleimplplugin_${ARCH}.so",
@@ -800,11 +815,9 @@ void TestBlackboxAndroid::android_data()
"lib/${ARCH}/libqml_QtQuick_Shapes_qmlshapesplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Templates_qtquicktemplates2plugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Timeline_qtquicktimelineplugin_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQuick_Layouts_qquicklayoutsplugin_${ARCH}.so",
- "lib/${ARCH}/libqml_QtQuick_qtquick2plugin_${ARCH}.so"}, generateAab);
+ "lib/${ARCH}/libqml_QtQuick_Layouts_qquicklayoutsplugin_${ARCH}.so"}, generateAab);
if (version >= qbs::Version(6, 2))
expectedFile << expandArchs(ndkArchsForQt, {
- "lib/${ARCH}/libqml_QtQuick_Window_quickwindowplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_tooling_quicktoolingplugin_${ARCH}.so",
"lib/${ARCH}/libQt6QmlLocalStorage_${ARCH}.so",
"lib/${ARCH}/libQt6QmlXmlListModel_${ARCH}.so",
@@ -813,9 +826,6 @@ void TestBlackboxAndroid::android_data()
"lib/${ARCH}/libQt6QuickDialogs2_${ARCH}.so",
"lib/${ARCH}/libQt6QuickLayouts_${ARCH}.so",
"lib/${ARCH}/libQt6QuickTimeline_${ARCH}.so",
- "lib/${ARCH}/libplugins_networkinformation_qandroidnetworkinformation_${ARCH}.so",
- "lib/${ARCH}/libplugins_tls_qcertonlybackend_${ARCH}.so",
- "lib/${ARCH}/libplugins_tls_qopensslbackend_${ARCH}.so",
"lib/${ARCH}/libqml_QtQml_XmlListModel_qmlxmllistmodelplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Dialogs_qtquickdialogsplugin_${ARCH}.so",
"lib/${ARCH}/libqml_QtQuick_Dialogs_quickimpl_qtquickdialogs2quickimplplugin_${ARCH}.so"},