Warning, /pim/itinerary/src/app/android/build.gradle is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2018-2020 Volker Krause <vkrause@kde.org>
0003     SPDX-FileCopyrightText: 2019 Nicolas Fella <nicolas.fella@gmx.de>
0004     SPDX-FileCopyrightText: 2020 Gabriel Souza Franco <gabrielfrancosouza@gmail.com>
0005     SPDX-License-Identifier: BSD-3-Clause
0006 */
0007 
0008 buildscript {
0009     repositories {
0010         google()
0011         jcenter()
0012     }
0013 
0014     dependencies {
0015         classpath 'com.android.tools.build:gradle:7.4.1'
0016     }
0017 }
0018 
0019 repositories {
0020     google()
0021     jcenter()
0022 }
0023 
0024 
0025 apply plugin: 'com.android.application'
0026 apply from: '../version.gradle'
0027 def timestamp = (int)(new Date().getTime()/1000)
0028 
0029 dependencies {
0030     implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
0031     implementation 'androidx.core:core:1.3.1'
0032 }
0033 
0034 android {
0035     /*******************************************************
0036      * The following variables:
0037      * - androidBuildToolsVersion,
0038      * - androidCompileSdkVersion
0039      * - qtAndroidDir - holds the path to qt android files
0040      *                   needed to build any Qt application
0041      *                   on Android.
0042      *
0043      * are defined in gradle.properties file. This file is
0044      * updated by QtCreator and androiddeployqt tools.
0045      * Changing them manually might break the compilation!
0046      *******************************************************/
0047 
0048     compileSdkVersion androidCompileSdkVersion
0049     buildToolsVersion androidBuildToolsVersion
0050     ndkVersion androidNdkVersion
0051 
0052     // Extract native libraries from the APK
0053     packagingOptions.jniLibs.useLegacyPackaging true
0054 
0055     sourceSets {
0056         main {
0057             manifest.srcFile 'AndroidManifest.xml'
0058             java.srcDirs = [qtAndroidDir + '/src', 'src', 'java']
0059             aidl.srcDirs = [qtAndroidDir + '/src', 'src', 'aidl']
0060             res.srcDirs = [qtAndroidDir + '/res', 'res']
0061             resources.srcDirs = ['src']
0062             renderscript.srcDirs = ['src']
0063             assets.srcDirs = ['assets']
0064             jniLibs.srcDirs = ['libs']
0065        }
0066     }
0067 
0068     compileOptions {
0069         sourceCompatibility JavaVersion.VERSION_1_8
0070         targetCompatibility JavaVersion.VERSION_1_8
0071     }
0072 
0073     lintOptions {
0074         abortOnError false
0075     }
0076 
0077     defaultConfig {
0078         minSdkVersion qtMinSdkVersion
0079         targetSdkVersion qtTargetSdkVersion
0080         applicationId "org.kde.itinerary"
0081         namespace "org.kde.itinerary"
0082         versionCode timestamp
0083         versionName projectVersionFull
0084         manifestPlaceholders = [versionName: projectVersionFull, versionCode: timestamp]
0085     }
0086 }