@@ -5,7 +5,8 @@ buildscript {
55 }
66
77 dependencies {
8- classpath ' com.android.tools.build:gradle:7.4.1'
8+ // noinspection AndroidGradlePluginVersion
9+ classpath ' com.android.tools.build:gradle:8.10.1'
910 }
1011}
1112
@@ -14,11 +15,12 @@ repositories {
1415 mavenCentral()
1516}
1617
17- apply plugin : ' com.android.application '
18+ apply plugin : qtGradlePluginType
1819
1920dependencies {
2021 implementation fileTree(dir : ' libs' , include : [' *.jar' , ' *.aar' ])
21- implementation ' androidx.core:core:1.10.1'
22+ // noinspection GradleDependency
23+ implementation ' androidx.core:core:1.16.0'
2224}
2325
2426android {
@@ -29,15 +31,17 @@ android {
2931 * - qtAndroidDir - holds the path to qt android files
3032 * needed to build any Qt application
3133 * on Android.
34+ * - qtGradlePluginType - whether to build an app or a library
3235 *
3336 * are defined in gradle.properties file. This file is
3437 * updated by QtCreator and androiddeployqt tools.
3538 * Changing them manually might break the compilation!
3639 *******************************************************/
3740
38- compileSdkVersion 33
41+ namespace = androidPackageName
42+ compileSdkVersion androidCompileSdkVersion
3943 buildToolsVersion androidBuildToolsVersion
40- ndkVersion androidNdkVersion
44+ ndkVersion = androidNdkVersion
4145
4246 // Extract native libraries from the APK
4347 packagingOptions. jniLibs. useLegacyPackaging true
@@ -57,6 +61,7 @@ android {
5761
5862 tasks. withType(JavaCompile ) {
5963 options. incremental = true
64+ options. compilerArgs + = [' -Xlint:all' ]
6065 }
6166
6267 compileOptions {
@@ -65,7 +70,7 @@ android {
6570 }
6671
6772 lintOptions {
68- abortOnError false
73+ abortOnError = false
6974 }
7075
7176 // Do not compress Qt binary resources file
0 commit comments