Skip to content

Commit

Permalink
Fix cache issue in lint model integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkumar9t2 committed Apr 19, 2024
1 parent 40c99d5 commit c1b3b58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ProjectXmlCreator(
dependencies: List<LintDependency>,
verbose: Boolean
): File {
val lintModelsDir = if (modelsDir.exists()) {
val lintModelsDir = if (modelsDir.exists() && modelsDir.walk().drop(1).any()) {
// For android_binary's report step we need to reuse models from analyze action so just return it if it exists
modelsDir
} else LintModelCreator().create(
Expand Down

0 comments on commit c1b3b58

Please sign in to comment.