Warning, /education/gcompris/android/build_5.14.gradle is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2022 Johnny Jazeix <jazeix@gmail.com> 0003 SPDX-License-Identifier: BSD-3-Clause 0004 */ 0005 0006 buildscript { 0007 repositories { 0008 google() 0009 jcenter() 0010 } 0011 0012 dependencies { 0013 classpath 'com.android.tools.build:gradle:3.6.0' 0014 } 0015 } 0016 0017 repositories { 0018 google() 0019 jcenter() 0020 } 0021 0022 apply plugin: 'com.android.application' 0023 0024 dependencies { 0025 implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) 0026 } 0027 0028 android { 0029 /******************************************************* 0030 * The following variables: 0031 * - androidBuildToolsVersion, 0032 * - androidCompileSdkVersion 0033 * - qt5AndroidDir - holds the path to qt android files 0034 * needed to build any Qt application 0035 * on Android. 0036 * 0037 * are defined in gradle.properties file. This file is 0038 * updated by QtCreator and androiddeployqt tools. 0039 * Changing them manually might break the compilation! 0040 *******************************************************/ 0041 0042 compileSdkVersion androidCompileSdkVersion.toInteger() 0043 0044 buildToolsVersion '28.0.3' 0045 0046 sourceSets { 0047 main { 0048 manifest.srcFile 'AndroidManifest.xml' 0049 java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java'] 0050 aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl'] 0051 res.srcDirs = [qt5AndroidDir + '/res', 'res'] 0052 resources.srcDirs = ['resources'] 0053 renderscript.srcDirs = ['src'] 0054 assets.srcDirs = ['assets'] 0055 jniLibs.srcDirs = ['libs'] 0056 } 0057 } 0058 0059 tasks.withType(JavaCompile) { 0060 options.incremental = true 0061 } 0062 0063 compileOptions { 0064 sourceCompatibility JavaVersion.VERSION_1_8 0065 targetCompatibility JavaVersion.VERSION_1_8 0066 } 0067 0068 lintOptions { 0069 abortOnError false 0070 } 0071 0072 /* REMOVE build.gradle file once we compile activities as .so plugin! 0073 // Do not compress Qt binary resources file 0074 aaptOptions { 0075 noCompress 'rcc' 0076 }*/ 0077 0078 defaultConfig { 0079 resConfig "en" 0080 minSdkVersion = qtMinSdkVersion 0081 targetSdkVersion = qtTargetSdkVersion 0082 } 0083 }