From 347212f0129712570a53d8dac0bc07c76d766ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 17 Dec 2024 14:39:42 +0100 Subject: [PATCH] Make the build work with Qt 6.8.1 (and newer) As for now, this is just for Qt debuging as multiple stuff is broken in Qt 6.8.1 - The new style has serious render issues - Reading files in a directory is by multiple order of magnitude slower - The zoom gestures do not work reliably Qt versions prior to 6.8.1 are completely unusable due to the broken main menu. --- pkg/android/AndroidManifest.xml | 48 +++++++++++++++++++++++++++------ pkg/android/build.gradle | 11 +++++--- pkg/android/res/values/libs.xml | 1 + 3 files changed, 48 insertions(+), 12 deletions(-) diff --git a/pkg/android/AndroidManifest.xml b/pkg/android/AndroidManifest.xml index 787b0a0a..3cb8501b 100644 --- a/pkg/android/AndroidManifest.xml +++ b/pkg/android/AndroidManifest.xml @@ -1,10 +1,30 @@ - + - - - + + + @@ -22,10 +42,22 @@ - - - + + - + + + + diff --git a/pkg/android/build.gradle b/pkg/android/build.gradle index ca328780..3fb1887d 100644 --- a/pkg/android/build.gradle +++ b/pkg/android/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.2.1' + classpath 'com.android.tools.build:gradle:8.6.0' } } @@ -14,10 +14,12 @@ repositories { mavenCentral() } -apply plugin: 'com.android.application' +apply plugin: qtGradlePluginType dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) + //noinspection GradleDependency + implementation 'androidx.core:core:1.13.1' } android { @@ -28,14 +30,15 @@ android { * - qtAndroidDir - holds the path to qt android files * needed to build any Qt application * on Android. + * - qtGradlePluginType - whether to build an app or a library * * are defined in gradle.properties file. This file is * updated by QtCreator and androiddeployqt tools. * Changing them manually might break the compilation! *******************************************************/ - //compileSdkVersion androidCompileSdkVersion - compileSdkVersion "android-33" + namespace androidPackageName + compileSdkVersion androidCompileSdkVersion buildToolsVersion androidBuildToolsVersion ndkVersion androidNdkVersion diff --git a/pkg/android/res/values/libs.xml b/pkg/android/res/values/libs.xml index beb15ca1..fe63866f 100644 --- a/pkg/android/res/values/libs.xml +++ b/pkg/android/res/values/libs.xml @@ -17,4 +17,5 @@ +