update BuildScripts to include copy task in AndroidLinter.kt

This commit is contained in:
Konstantin Kuzhim 2023-02-07 14:26:50 +07:00
parent 3cc63ffe5e
commit 5c46386ebf
1 changed files with 6 additions and 3 deletions

View File

@ -48,11 +48,14 @@ class AndroidLinter : Linter {
.mapNotNull { subproject: Project ->
subproject
.tasks
.find { task -> task.name.equals("lint$buildType", ignoreCase = true) }
?.path
.filter { task ->
task.name.equals("lint${buildType}", ignoreCase = true)
|| task.name.equals("copy${buildType}AndroidLintReports", ignoreCase = true)
}
.map { it.path }
}
.flatten()
}
private fun Project.getLintReportFile() = file("${rootProject.buildDir}/reports/lint-report.xml")
}