2016-09-26 21:39:46 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2020-01-27 21:53:51 +01:00
|
|
|
google()
|
2016-09-26 21:39:46 +02:00
|
|
|
jcenter()
|
2020-01-27 21:53:51 +01:00
|
|
|
mavenCentral()
|
2016-09-26 21:39:46 +02:00
|
|
|
}
|
2020-05-24 21:14:23 +02:00
|
|
|
|
2016-09-26 21:39:46 +02:00
|
|
|
dependencies {
|
2020-01-27 21:53:51 +01:00
|
|
|
classpath 'com.android.tools.build:gradle:3.5.2'
|
2016-09-26 21:39:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-24 21:14:23 +02:00
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
jcenter()
|
2019-12-10 21:12:32 +01:00
|
|
|
maven {
|
|
|
|
url "https://maven.google.com"
|
|
|
|
}
|
2016-09-26 21:39:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
dependencies {
|
2020-05-24 21:14:23 +02:00
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
2016-09-26 21:39:46 +02:00
|
|
|
}
|
|
|
|
|
2019-06-25 20:59:10 +02:00
|
|
|
dependencies {
|
2020-01-27 21:53:51 +01:00
|
|
|
compile 'androidx.appcompat:appcompat:1.1.0'
|
2019-06-25 20:59:10 +02:00
|
|
|
}
|
2019-01-09 22:03:16 +01:00
|
|
|
|
2016-09-26 21:39:46 +02:00
|
|
|
android {
|
|
|
|
/*******************************************************
|
|
|
|
* The following variables:
|
|
|
|
* - androidBuildToolsVersion,
|
|
|
|
* - androidCompileSdkVersion
|
|
|
|
* - qt5AndroidDir - holds the path to qt android files
|
|
|
|
* needed to build any Qt application
|
|
|
|
* on Android.
|
|
|
|
*
|
|
|
|
* 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()
|
|
|
|
|
2020-05-24 21:14:23 +02:00
|
|
|
buildToolsVersion '28.0.3'
|
2016-09-26 21:39:46 +02:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
|
|
|
|
aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
|
|
|
|
res.srcDirs = [qt5AndroidDir + '/res', 'res']
|
2020-05-24 21:14:23 +02:00
|
|
|
resources.srcDirs = ['resources']
|
2016-09-26 21:39:46 +02:00
|
|
|
renderscript.srcDirs = ['src']
|
|
|
|
assets.srcDirs = ['assets']
|
|
|
|
jniLibs.srcDirs = ['libs']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
2020-05-24 21:14:23 +02:00
|
|
|
|
|
|
|
// Do not compress Qt binary resources file
|
|
|
|
aaptOptions {
|
|
|
|
noCompress 'rcc'
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
resConfigs "en"
|
|
|
|
}
|
2016-09-26 21:39:46 +02:00
|
|
|
}
|
2017-11-07 21:57:40 +01:00
|
|
|
apply from: "androidnative.gradle"
|
2019-01-09 22:03:16 +01:00
|
|
|
setAndroidNativePath("/../androidnative.pri");
|