Warning, /maui/communicator/android_files/build.gradle is written in an unsupported language. File is not indexed.
0001 buildscript {
0002 repositories {
0003 google()
0004 jcenter()
0005 }
0006
0007 dependencies {
0008 classpath 'com.android.tools.build:gradle:3.6.0'
0009 }
0010 }
0011
0012 repositories {
0013 google()
0014 jcenter()
0015 }
0016
0017 apply plugin: 'com.android.application'
0018 apply from: '../version.gradle'
0019 def timestamp = (int)(new Date().getTime()/1000)
0020
0021 dependencies {
0022 implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
0023 compile 'com.android.support:support-v4:25.3.1'
0024 }
0025
0026 android {
0027 /*******************************************************
0028 * The following variables:
0029 * - androidBuildToolsVersion,
0030 * - androidCompileSdkVersion
0031 * - qt5AndroidDir - holds the path to qt android files
0032 * needed to build any Qt application
0033 * on Android.
0034 *
0035 * are defined in gradle.properties file. This file is
0036 * updated by QtCreator and androiddeployqt tools.
0037 * Changing them manually might break the compilation!
0038 *******************************************************/
0039
0040 compileSdkVersion androidCompileSdkVersion.toInteger()
0041
0042 buildToolsVersion '28.0.3'
0043
0044 sourceSets {
0045 main {
0046 manifest.srcFile 'AndroidManifest.xml'
0047 java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
0048 aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
0049 res.srcDirs = [qt5AndroidDir + '/res', 'res']
0050 resources.srcDirs = ['resources']
0051 renderscript.srcDirs = ['src']
0052 assets.srcDirs = ['assets']
0053 jniLibs.srcDirs = ['libs']
0054 }
0055 }
0056
0057 tasks.withType(JavaCompile) {
0058 options.incremental = true
0059 }
0060
0061 compileOptions {
0062 sourceCompatibility JavaVersion.VERSION_1_8
0063 targetCompatibility JavaVersion.VERSION_1_8
0064 }
0065
0066 lintOptions {
0067 abortOnError false
0068 }
0069
0070 // Do not compress Qt binary resources file
0071 aaptOptions {
0072 noCompress 'rcc'
0073 ignoreAssetsPattern '!<dir>ECM:!<dir>aclocal:!<dir>doc:!<dir>gtk-doc:!<dir>man:!<dir>mime:!<dir>pkgconfig:!<dir>qlogging-categories5:!<file>iso_15924.mo:!<file>iso_3166-2.mo:!<file>iso_3166-3.mo:!<file>iso_4217.mo:!<file>iso_639-2.mo:!<file>iso_639-3.mo:!<file>iso_639-5.mo:!<file>kcodecs5_qt.qm:!<file>kde5_xml_mimetypes.qm:!<file>knotifications5_qt.qm:!<file>libkholidays5_qt.qm:!<file>libkmime5.mo:!<file>iso_3166-3.json:!<file>iso_4217.json:!<file>iso_639-2.json:!<file>iso_639-3.json:!<file>iso_639-5.json:!<file>schema-15924.json:!<file>schema-3166-1.json:!<file>schema-3166-2.json:!<file>schema-3166-3.json:!<file>schema-4217.json:!<file>schema-639-2.json:!<file>schema-639-3.json:!<file>schema-639-5.json'
0074 }
0075
0076 defaultConfig {
0077 resConfig "en"
0078 minSdkVersion = qtMinSdkVersion
0079 targetSdkVersion = qtTargetSdkVersion
0080 manifestPlaceholders = [versionName: projectVersionFull, versionCode: timestamp]
0081 }
0082
0083 packagingOptions {
0084 exclude 'lib/*/*_Controls.2_Fusion_*'
0085 exclude 'lib/*/*_Controls.2_Imagine_*'
0086 exclude 'lib/*/*RemoteObjects*'
0087 exclude 'lib/*/*StateMachine*'
0088 exclude 'lib/*/*_imageformats_qico_*'
0089 exclude 'lib/*/*_imageformats_qicns_*'
0090 exclude 'lib/*/*_imageformats_qtga_*'
0091 exclude 'lib/*/*_imageformats_qtiff_*'
0092 exclude 'lib/*/*_qmltooling_*'
0093 exclude 'lib/*/*_qtgeoservices_esri_*'
0094 exclude 'lib/*/*_qtgeoservices_mapbox_*'
0095 exclude 'lib/*/*_qtgeoservices_nokia_*'
0096 }
0097
0098 }