Warning, /network/neochat/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 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.neochat" 0081 namespace "org.kde.neochat" 0082 versionCode timestamp 0083 versionName projectVersionFull 0084 manifestPlaceholders = [versionName: projectVersionFull, versionCode: timestamp] 0085 } 0086 0087 packagingOptions { 0088 exclude 'lib/*/*RemoteObjects*' 0089 exclude 'lib/*/*StateMachine*' 0090 exclude 'lib/*/*_imageformats_qico_*' 0091 exclude 'lib/*/*_imageformats_qicns_*' 0092 exclude 'lib/*/*_imageformats_qtga_*' 0093 exclude 'lib/*/*_imageformats_qtiff_*' 0094 exclude 'lib/*/*_qmltooling_*' 0095 exclude 'lib/*/*_multimedia_ffmpeg*' // temporary qt6 android fix 0096 } 0097 0098 aaptOptions { 0099 // different syntax than above 0100 // see https://android.googlesource.com/platform/frameworks/base/+/refs/heads/pie-release/tools/aapt2/util/Files.h#90 0101 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' 0102 } 0103 0104 0105 }