0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00

AGP: Migrate DSL properties from lintOptions to lint

AGP 7.4.1

Description:

Configuration related to lint is now performed using the lint block.

----
Change summary: Automated change + manual fixups

Automated change blanked and inlined lint.gradle into `build.gradle`
Manually fixed this to change `lint.gradle`

Afterwards, we have a NullReferenceException caused by `textOutput "stdout"`

From the docs:

> To output the lint report to stdout set textReport=true, and leave textOutput unset.

https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/dsl/Lint#textOutput()
This commit is contained in:
David Allison 2023-02-15 19:40:10 +00:00 committed by Mike Hardy
parent 913a705a7c
commit a5251c15ab

View File

@ -1,13 +1,13 @@
android {
lintOptions {
textReport true
textOutput "stdout"
lint {
abortOnError true
checkReleaseBuilds true
checkTestSources true
explainIssues false
lintConfig file('../lint-release.xml')
showAll true
abortOnError = true
textOutput file('stdout')
textReport true
warningsAsErrors true
lintConfig file("../lint-release.xml")
checkReleaseBuilds = true
checkTestSources = true
}
}