summaryrefslogtreecommitdiffstats
path: root/src/android/templates/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/templates/build.gradle')
-rw-r--r--src/android/templates/build.gradle9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/android/templates/build.gradle b/src/android/templates/build.gradle
index 4c711790f8..4a93923277 100644
--- a/src/android/templates/build.gradle
+++ b/src/android/templates/build.gradle
@@ -5,7 +5,7 @@ buildscript {
}
dependencies {
- classpath 'com.android.tools.build:gradle:7.0.2'
+ classpath 'com.android.tools.build:gradle:8.4.0'
}
}
@@ -14,10 +14,11 @@ repositories {
mavenCentral()
}
-apply plugin: 'com.android.application'
+apply plugin: qtGradlePluginType
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
+ implementation 'androidx.core:core:1.13.1'
}
android {
@@ -28,13 +29,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.toInteger()
+ namespace androidPackageName
+ compileSdkVersion androidCompileSdkVersion
buildToolsVersion androidBuildToolsVersion
ndkVersion androidNdkVersion