Warning, /network/tokodon/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 }
0032 
0033 android {
0034     /*******************************************************
0035      * The following variables:
0036      * - androidBuildToolsVersion,
0037      * - androidCompileSdkVersion
0038      * - qtAndroidDir - holds the path to qt android files
0039      *                   needed to build any Qt application
0040      *                   on Android.
0041      *
0042      * are defined in gradle.properties file. This file is
0043      * updated by QtCreator and androiddeployqt tools.
0044      * Changing them manually might break the compilation!
0045      *******************************************************/
0046 
0047     compileSdkVersion androidCompileSdkVersion
0048     buildToolsVersion androidBuildToolsVersion
0049     ndkVersion androidNdkVersion
0050 
0051     // Extract native libraries from the APK
0052     packagingOptions.jniLibs.useLegacyPackaging true
0053 
0054     sourceSets {
0055         main {
0056             manifest.srcFile 'AndroidManifest.xml'
0057             java.srcDirs = [qtAndroidDir + '/src', 'src', 'java']
0058             aidl.srcDirs = [qtAndroidDir + '/src', 'src', 'aidl']
0059             res.srcDirs = [qtAndroidDir + '/res', 'res']
0060             resources.srcDirs = ['src']
0061             renderscript.srcDirs = ['src']
0062             assets.srcDirs = ['assets']
0063             jniLibs.srcDirs = ['libs']
0064        }
0065     }
0066 
0067     compileOptions {
0068         sourceCompatibility JavaVersion.VERSION_1_8
0069         targetCompatibility JavaVersion.VERSION_1_8
0070     }
0071 
0072     lintOptions {
0073         abortOnError false
0074     }
0075 
0076     defaultConfig {
0077         minSdkVersion qtMinSdkVersion
0078         targetSdkVersion qtTargetSdkVersion
0079         applicationId "org.kde.tokodon"
0080         namespace "org.kde.tokodon"
0081         versionCode timestamp
0082         versionName projectVersionFull
0083         manifestPlaceholders = [versionName: projectVersionFull, versionCode: timestamp]
0084     }
0085 
0086     packagingOptions {
0087         exclude 'lib/*/*RemoteObjects*'
0088         exclude 'lib/*/*StateMachine*'
0089         exclude 'lib/*/*_imageformats_qico_*'
0090         exclude 'lib/*/*_imageformats_qicns_*'
0091         exclude 'lib/*/*_imageformats_qtga_*'
0092         exclude 'lib/*/*_imageformats_qtiff_*'
0093         exclude 'lib/*/*_qmltooling_*'
0094         exclude 'lib/*/*_multimedia_ffmpeg*' // temporary qt6 android fix
0095     }
0096 
0097     aaptOptions {
0098         // different syntax than above
0099         // see https://android.googlesource.com/platform/frameworks/base/+/refs/heads/pie-release/tools/aapt2/util/Files.h#90
0100         ignoreAssetsPattern '!<dir>ECM:!<dir>aclocal:!<dir>doc:!<dir>gtk-doc:!<dir>iso-codes:!<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'
0101      }
0102 
0103 
0104 }