Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-maps/package/build.gradle
- This file was added.
1 | buildscript { | ||||
---|---|---|---|---|---|
2 | repositories { | ||||
3 | google() | ||||
4 | jcenter() | ||||
5 | } | ||||
6 | | ||||
7 | dependencies { | ||||
8 | classpath 'com.android.tools.build:gradle:3.2.0' | ||||
9 | } | ||||
10 | } | ||||
11 | | ||||
12 | repositories { | ||||
13 | google() | ||||
14 | jcenter() | ||||
15 | } | ||||
16 | | ||||
17 | apply plugin: 'com.android.application' | ||||
18 | | ||||
19 | dependencies { | ||||
20 | compile fileTree(dir: 'libs', include: ['*.jar', '*.aar']) | ||||
21 | compile 'com.android.support:support-v4:28.0.0' | ||||
22 | } | ||||
23 | | ||||
24 | android { | ||||
25 | /******************************************************* | ||||
26 | * The following variables: | ||||
27 | * - androidBuildToolsVersion, | ||||
28 | * - androidCompileSdkVersion | ||||
29 | * - qt5AndroidDir - holds the path to qt android files | ||||
30 | * needed to build any Qt application | ||||
31 | * on Android. | ||||
32 | * | ||||
33 | * are defined in gradle.properties file. This file is | ||||
34 | * updated by QtCreator and androiddeployqt tools. | ||||
35 | * Changing them manually might break the compilation! | ||||
36 | *******************************************************/ | ||||
37 | | ||||
38 | compileSdkVersion androidCompileSdkVersion.toInteger() | ||||
39 | | ||||
40 | buildToolsVersion androidBuildToolsVersion | ||||
41 | | ||||
42 | sourceSets { | ||||
43 | main { | ||||
44 | manifest.srcFile 'AndroidManifest.xml' | ||||
45 | java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java'] | ||||
46 | aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl'] | ||||
47 | res.srcDirs = [qt5AndroidDir + '/res', 'res'] | ||||
48 | resources.srcDirs = ['src'] | ||||
49 | renderscript.srcDirs = ['src'] | ||||
50 | assets.srcDirs = ['assets'] | ||||
51 | jniLibs.srcDirs = ['libs'] | ||||
52 | } | ||||
53 | } | ||||
54 | | ||||
55 | lintOptions { | ||||
56 | abortOnError false | ||||
57 | } | ||||
58 | } |