From 60d385f1f9331999e6607e9713068ba3819c46b9 Mon Sep 17 00:00:00 2001 From: Gerhard Olsson <6248932+gerhardol@users.noreply.github.com> Date: Thu, 16 Feb 2023 23:37:54 +0100 Subject: [PATCH] F-Droid: update minimum version to Android5/sdk21 (#1134) * Add lint suppress to common/hrdevice * F-Droid: update minimum version to Android5/sdk21 Add multidexing by default in free without complicated config. Appbundles used in Play, not needed there. * Update to 2.5.0.5 --------- Co-authored-by: Gerhard Olsson --- app/build.gradle | 10 +- build.gradle | 4 +- common/build.gradle | 6 + common/lint-baseline.xml | 11 ++ common/lint.xml | 8 + hrdevice/build.gradle | 8 + hrdevice/lint-baseline.xml | 389 +++++++++++++++++++++++++++++++++++++ 7 files changed, 432 insertions(+), 4 deletions(-) create mode 100644 common/lint-baseline.xml create mode 100644 common/lint.xml create mode 100644 hrdevice/lint-baseline.xml diff --git a/app/build.gradle b/app/build.gradle index 4a56e18af..0a766a57c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -39,7 +39,13 @@ android { productFlavors { latest { dimension "all" - minSdkVersion 15 + if (rootProject.ext.allowNonFree) { + // Not required with app bundles(?) + minSdkVersion 15 + } else { + // multidexing support + minSdkVersion 21 + } compileSdkVersion rootProject.ext.compileSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionName rootProject.ext.versionName @@ -87,7 +93,7 @@ android { minifyEnabled rootProject.ext.allowNonFree shrinkResources rootProject.ext.allowNonFree - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.txt' + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.txt' signingConfig signingConfigs.release } } diff --git a/build.gradle b/build.gradle index d4cbc2637..2a1317bd0 100644 --- a/build.gradle +++ b/build.gradle @@ -30,8 +30,8 @@ project.ext { mockitoVersion = '3.11.2' //The Git tag for the release must be identical for F-Droid - versionName = '2.5.0.4' - versionCode = 322 + versionName = '2.5.0.5' + versionCode = 323 latestBaseVersionCode = 15000000 // F-Droid builds only allow free software (wear dir deleted at builds) diff --git a/common/build.gradle b/common/build.gradle index c1f5519a7..def694962 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -35,6 +35,12 @@ android { lint { showAll true warning 'MissingTranslation' + baseline file('lint-baseline.xml') + lintConfig file('lint.xml') + checkReleaseBuilds true + lintConfig file('lint.xml') + //textOutput 'stdout' + textReport true } namespace 'org.runnerup.common' } diff --git a/common/lint-baseline.xml b/common/lint-baseline.xml new file mode 100644 index 000000000..ffbfa8a2b --- /dev/null +++ b/common/lint-baseline.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/common/lint.xml b/common/lint.xml new file mode 100644 index 000000000..c4b210183 --- /dev/null +++ b/common/lint.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/hrdevice/build.gradle b/hrdevice/build.gradle index 70f9a0f3d..02746d553 100644 --- a/hrdevice/build.gradle +++ b/hrdevice/build.gradle @@ -23,6 +23,14 @@ android { assets.srcDirs = ['assets'] } } + lint { + baseline file('lint-baseline.xml') + checkReleaseBuilds true + //lintConfig file('lint.xml') + showAll true + //textOutput 'stdout' + textReport true + } defaultConfig { minSdkVersion 15 targetSdkVersion rootProject.ext.targetSdkVersion diff --git a/hrdevice/lint-baseline.xml b/hrdevice/lint-baseline.xml new file mode 100644 index 000000000..73f790af7 --- /dev/null +++ b/hrdevice/lint-baseline.xml @@ -0,0 +1,389 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +