Skip to content

Commit 3262968

Browse files
committed
Bump version, fix missing files in manual assetts
1 parent f611562 commit 3262968

File tree

2 files changed

+88
-1
lines changed

2 files changed

+88
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ option(QTDEPLOY "Generate and run Qt deployment scripts" OFF)
1414
# Project data
1515
#
1616

17-
project(enroute VERSION 2.33.51)
17+
project(enroute VERSION 2.33.52)
1818
set(APP_ID de.akaflieg_freiburg.enroute)
1919
set(DISPLAY_NAME "Enroute")
2020
math(EXPR PROJECT_VERSION_CODE 10000*${PROJECT_VERSION_MAJOR}+100*${PROJECT_VERSION_MINOR}+${PROJECT_VERSION_PATCH})

src/android/build.gradle

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
mavenCentral()
5+
}
6+
7+
dependencies {
8+
//noinspection AndroidGradlePluginVersion
9+
classpath 'com.android.tools.build:gradle:8.6.0'
10+
}
11+
}
12+
13+
repositories {
14+
google()
15+
mavenCentral()
16+
}
17+
18+
apply plugin: qtGradlePluginType
19+
20+
dependencies {
21+
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
22+
//noinspection GradleDependency
23+
implementation 'androidx.core:core:1.13.1'
24+
}
25+
26+
android {
27+
/*******************************************************
28+
* The following variables:
29+
* - androidBuildToolsVersion,
30+
* - androidCompileSdkVersion
31+
* - qtAndroidDir - holds the path to qt android files
32+
* needed to build any Qt application
33+
* on Android.
34+
* - qtGradlePluginType - whether to build an app or a library
35+
*
36+
* are defined in gradle.properties file. This file is
37+
* updated by QtCreator and androiddeployqt tools.
38+
* Changing them manually might break the compilation!
39+
*******************************************************/
40+
41+
namespace androidPackageName
42+
compileSdkVersion androidCompileSdkVersion
43+
buildToolsVersion androidBuildToolsVersion
44+
ndkVersion androidNdkVersion
45+
46+
// Extract native libraries from the APK
47+
packagingOptions.jniLibs.useLegacyPackaging true
48+
49+
sourceSets {
50+
main {
51+
manifest.srcFile 'AndroidManifest.xml'
52+
java.srcDirs = [qtAndroidDir + '/src', 'src', 'java']
53+
aidl.srcDirs = [qtAndroidDir + '/src', 'src', 'aidl']
54+
res.srcDirs = [qtAndroidDir + '/res', 'res']
55+
resources.srcDirs = ['resources']
56+
renderscript.srcDirs = ['src']
57+
assets.srcDirs = ['assets']
58+
jniLibs.srcDirs = ['libs']
59+
}
60+
}
61+
62+
tasks.withType(JavaCompile) {
63+
options.incremental = true
64+
}
65+
66+
compileOptions {
67+
sourceCompatibility JavaVersion.VERSION_1_8
68+
targetCompatibility JavaVersion.VERSION_1_8
69+
}
70+
71+
lintOptions {
72+
abortOnError false
73+
}
74+
75+
// Do not compress Qt binary resources file
76+
aaptOptions {
77+
noCompress 'rcc'
78+
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
79+
}
80+
81+
defaultConfig {
82+
resConfig "en"
83+
minSdkVersion qtMinSdkVersion
84+
targetSdkVersion qtTargetSdkVersion
85+
ndk.abiFilters = qtTargetAbiList.split(",")
86+
}
87+
}

0 commit comments

Comments
 (0)