Skip to content

Commit

Permalink
F-Droid: update minimum version to Android5/sdk21 (#1134)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
gerhardol and gerhardol authored Feb 16, 2023
1 parent ed393a2 commit 60d385f
Show file tree
Hide file tree
Showing 7 changed files with 432 additions and 4 deletions.
10 changes: 8 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
}
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down
11 changes: 11 additions & 0 deletions common/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.4.1" type="baseline" client="gradle" dependencies="false" name="AGP (7.4.1)" variant="all" version="7.4.1">

<issue
id="IconMissingDensityFolder"
message="Missing density variation folders in `src\main\res`: drawable-hdpi, drawable-xhdpi, drawable-xxhdpi">
<location
file="src/main/res"/>
</issue>

</issues>
8 changes: 8 additions & 0 deletions common/lint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<!-- All translations will not be complete -->
<issue id="MissingTranslation" severity="ignore" />
<!-- Ignore not cleaned up strings -->
<issue id="ExtraTranslation" severity="ignore" />
<issue id="PluralsCandidate,UnusedResources,TypographyEllipsis" severity="ignore" />
</lint>
8 changes: 8 additions & 0 deletions hrdevice/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 60d385f

Please sign in to comment.