Use lint version 8.1.0 to fix erroneous warning about forEach (#3903)

Android lint was erroneously warning that the forEach construct in
Kotlin required API 24+, which is incorrect, see
https://issuetracker.google.com/issues/185418482.

Work around that by forcing the Android lint version to 8.1.0.

This triggered some additional checks, which have been ignored, and a
new baseline.
This commit is contained in:
Nik Clayton 2023-07-30 21:45:43 +02:00 committed by GitHub
parent 839d8bcc04
commit 30be3ce1f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 150 additions and 911 deletions

File diff suppressed because it is too large Load Diff

View File

@ -33,6 +33,12 @@
<!-- Logs are stripped in release builds. --> <!-- Logs are stripped in release builds. -->
<issue id="LogConditional" severity="ignore" /> <issue id="LogConditional" severity="ignore" />
<!-- Newer dependencies are handled by Renovate, and don't need a warning -->
<issue id="GradleDependency" severity="ignore" />
<!-- Typographical quotes are not something we care about at the moment -->
<issue id="TypographyQuotes" severity="ignore" />
<!-- Ensure we are warned about errors in the baseline --> <!-- Ensure we are warned about errors in the baseline -->
<issue id="LintBaseline" severity="warning" /> <issue id="LintBaseline" severity="warning" />

View File

@ -12,3 +12,6 @@ kotlin.incremental.useClasspathSnapshot=true
android.defaults.buildfeatures.resvalues=false android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false android.defaults.buildfeatures.shaders=false
android.useAndroidX=true android.useAndroidX=true
# Upgrade lint to a newer version to work around https://issuetracker.google.com/issues/185418482.
android.experimental.lint.version=8.1.0