80 lines
2.0 KiB
Groovy
Raw Normal View History

2018-01-20 17:44:28 +03:00
buildscript {
repositories {
2021-04-19 23:47:19 +03:00
google()
2018-01-20 17:44:28 +03:00
jcenter()
}
dependencies {
2021-04-19 23:47:19 +03:00
classpath 'com.android.tools.build:gradle:3.6.0'
2018-01-20 17:44:28 +03:00
}
}
2021-04-19 23:47:19 +03:00
repositories {
google()
jcenter()
2018-01-20 17:44:28 +03:00
}
apply plugin: 'com.android.application'
dependencies {
2021-04-19 23:47:19 +03:00
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
2021-05-06 17:15:22 +03:00
implementation 'com.google.android.gms:play-services-ads:20.1.0'
2018-01-20 17:44:28 +03: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()
2021-04-19 23:47:19 +03:00
buildToolsVersion '28.0.3'
2018-01-20 17:44:28 +03:00
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
res.srcDirs = [qt5AndroidDir + '/res', 'res']
2021-04-19 23:47:19 +03:00
resources.srcDirs = ['resources']
2018-01-20 17:44:28 +03:00
renderscript.srcDirs = ['src']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
}
2021-04-19 23:47:19 +03:00
tasks.withType(JavaCompile) {
options.incremental = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2018-01-20 17:44:28 +03:00
lintOptions {
abortOnError false
}
2021-04-19 23:47:19 +03:00
// Do not compress Qt binary resources file
aaptOptions {
noCompress 'rcc'
}
defaultConfig {
resConfig "en"
2021-05-06 17:15:22 +03:00
multiDexEnabled true
2021-04-27 16:53:19 +03:00
minSdkVersion = 22
targetSdkVersion = 30
2021-04-19 23:47:19 +03:00
}
2018-01-20 17:44:28 +03:00
}