From 104b1ee4f69aab1bcbd0391d43c788d05485933e Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Fri, 15 Jan 2021 18:15:37 +0100 Subject: [PATCH] Preperation for release 1.0.0 - New Android Manifest for API 29 - minor fiexes --- ScStwApp.pro | 4 ++-- android/AndroidManifest.xml | 12 ++++------ android/build.gradle | 24 +++++++++++++++++-- android/gradle.properties | 11 +++++++++ .../gradle/wrapper/gradle-wrapper.properties | 3 +-- android/res/values/libs.xml | 15 +++++------- resources/qml/MainPage/TopToolBar.qml | 2 +- 7 files changed, 47 insertions(+), 24 deletions(-) create mode 100644 android/gradle.properties diff --git a/ScStwApp.pro b/ScStwApp.pro index 83ebf6f..1800b0d 100644 --- a/ScStwApp.pro +++ b/ScStwApp.pro @@ -56,6 +56,7 @@ DISTFILES += \ CHANGELOG \ android/AndroidManifest.xml \ android/build.gradle \ + android/gradle.properties \ android/gradle/wrapper/gradle-wrapper.jar \ android/gradle/wrapper/gradle-wrapper.properties \ android/gradlew \ @@ -65,6 +66,5 @@ DISTFILES += \ android { ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android + ANDROID_ABIS = armeabi-v7a arm64-v8a } - -ANDROID_ABIS = armeabi-v7a arm64-v8a diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index e1d4e6a..31a7da9 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -1,7 +1,5 @@ - - @@ -11,9 +9,8 @@ - - - + + @@ -28,12 +25,10 @@ - - - + @@ -77,4 +72,5 @@ + diff --git a/android/build.gradle b/android/build.gradle index ed704c4..cea09f2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.2.0' + classpath 'com.android.tools.build:gradle:3.6.0' } } @@ -44,14 +44,34 @@ android { java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java'] aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl'] res.srcDirs = [qt5AndroidDir + '/res', 'res'] - resources.srcDirs = ['src'] + resources.srcDirs = ['resources'] renderscript.srcDirs = ['src'] assets.srcDirs = ['assets'] jniLibs.srcDirs = ['libs'] } } + tasks.withType(JavaCompile) { + options.incremental = true + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + lintOptions { abortOnError false } + + // Do not compress Qt binary resources file + aaptOptions { + noCompress 'rcc' + } + + defaultConfig { + resConfig "en" + minSdkVersion = qtMinSdkVersion + targetSdkVersion = 29 + } } diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..fded106 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,11 @@ +# Project-wide Gradle settings. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m + +# Gradle caching allows reusing the build artifacts from a previous +# build with the same inputs. However, over time, the cache size will +# grow. Uncomment the following line to enable it. +#org.gradle.caching=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 8bbd35d..5028f28 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -android.bundle.enableUncompressedNativeLibs=false diff --git a/android/res/values/libs.xml b/android/res/values/libs.xml index 4009a77..6b1a4a2 100644 --- a/android/res/values/libs.xml +++ b/android/res/values/libs.xml @@ -1,7 +1,7 @@ - https://download.qt.io/ministro/android/qt5/qt-5.9 + https://download.qt.io/ministro/android/qt5/qt-5.14 - - - - - - + + - - + + + diff --git a/resources/qml/MainPage/TopToolBar.qml b/resources/qml/MainPage/TopToolBar.qml index 8b13d38..58f95c2 100644 --- a/resources/qml/MainPage/TopToolBar.qml +++ b/resources/qml/MainPage/TopToolBar.qml @@ -30,7 +30,7 @@ ToolBar { Text { id: raceStatusLabel - padding: width * 0.06 + padding: app.landscape() ? width * 0.2 : height * 0.25 text: control.statusText