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.0.2' 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 * - qt5AndroidDir - 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.toInteger() 0048 0049 buildToolsVersion androidBuildToolsVersion 0050 ndkVersion androidNdkVersion 0051 0052 sourceSets { 0053 main { 0054 manifest.srcFile 'AndroidManifest.xml' 0055 java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java'] 0056 aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl'] 0057 res.srcDirs = [qt5AndroidDir + '/res', 'res'] 0058 resources.srcDirs = ['src'] 0059 renderscript.srcDirs = ['src'] 0060 assets.srcDirs = ['assets'] 0061 jniLibs.srcDirs = ['libs'] 0062 } 0063 } 0064 0065 compileOptions { 0066 sourceCompatibility JavaVersion.VERSION_1_8 0067 targetCompatibility JavaVersion.VERSION_1_8 0068 } 0069 0070 lintOptions { 0071 abortOnError false 0072 } 0073 0074 defaultConfig { 0075 minSdkVersion qtMinSdkVersion 0076 targetSdkVersion qtTargetSdkVersion 0077 applicationId "org.kde.neochat" 0078 namespace "org.kde.neochat" 0079 versionCode timestamp 0080 versionName projectVersionFull 0081 manifestPlaceholders = [versionName: projectVersionFull, versionCode: timestamp] 0082 } 0083 0084 packagingOptions { 0085 exclude 'lib/*/*RemoteObjects*' 0086 exclude 'lib/*/*StateMachine*' 0087 exclude 'lib/*/*_imageformats_qico_*' 0088 exclude 'lib/*/*_imageformats_qicns_*' 0089 exclude 'lib/*/*_imageformats_qtga_*' 0090 exclude 'lib/*/*_imageformats_qtiff_*' 0091 exclude 'lib/*/*_qmltooling_*' 0092 } 0093 0094 aaptOptions { 0095 // different syntax than above 0096 // see https://android.googlesource.com/platform/frameworks/base/+/refs/heads/pie-release/tools/aapt2/util/Files.h#90 0097 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' 0098 } 0099 0100 0101 }