Warning, /multimedia/kasts/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-FileCopyrightText: 2023 Bart De Vries <bart@mogwai.be> 0006 SPDX-License-Identifier: BSD-3-Clause 0007 */ 0008 0009 buildscript { 0010 repositories { 0011 google() 0012 jcenter() 0013 } 0014 0015 dependencies { 0016 classpath 'com.android.tools.build:gradle:7.0.2' 0017 } 0018 } 0019 0020 repositories { 0021 google() 0022 jcenter() 0023 } 0024 0025 0026 apply plugin: 'com.android.application' 0027 apply from: '../version.gradle' 0028 def timestamp = (int)(new Date().getTime()/1000) 0029 0030 dependencies { 0031 implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) 0032 } 0033 0034 android { 0035 /******************************************************* 0036 * The following variables: 0037 * - androidBuildToolsVersion, 0038 * - androidCompileSdkVersion 0039 * - qt5AndroidDir - 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.toInteger() 0049 0050 buildToolsVersion androidBuildToolsVersion 0051 ndkVersion androidNdkVersion 0052 0053 sourceSets { 0054 main { 0055 manifest.srcFile 'AndroidManifest.xml' 0056 java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java'] 0057 aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl'] 0058 res.srcDirs = [qt5AndroidDir + '/res', 'res'] 0059 resources.srcDirs = ['src'] 0060 renderscript.srcDirs = ['src'] 0061 assets.srcDirs = ['assets'] 0062 jniLibs.srcDirs = ['libs'] 0063 } 0064 } 0065 0066 compileOptions { 0067 sourceCompatibility JavaVersion.VERSION_1_8 0068 targetCompatibility JavaVersion.VERSION_1_8 0069 } 0070 0071 lintOptions { 0072 abortOnError false 0073 } 0074 0075 defaultConfig { 0076 minSdkVersion qtMinSdkVersion 0077 targetSdkVersion qtTargetSdkVersion 0078 applicationId "org.kde.kasts" 0079 namespace "org.kde.kasts" 0080 versionCode timestamp 0081 versionName projectVersionFull 0082 manifestPlaceholders = [versionName: projectVersionFull, versionCode: timestamp] 0083 } 0084 0085 packagingOptions { 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 } 0094 0095 aaptOptions { 0096 // different syntax than above 0097 // see https://android.googlesource.com/platform/frameworks/base/+/refs/heads/pie-release/tools/aapt2/util/Files.h#90 0098 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.mo:!<file>iso_3166_2.mo:<file>iso_3166-3.mo:!<file>iso_4217.mo:!<file>iso_639.mo:!<file>iso_639-2.mo:!<file>iso_639-3.mo:!<file>iso_639_3.mo:!<file>iso_639-5.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_15924.json:!<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' 0099 } 0100 0101 0102 }