Skip to content

Commit

Permalink
fixing some output files
Browse files Browse the repository at this point in the history
  • Loading branch information
EdbertChan committed Apr 24, 2024
1 parent 97ab9b8 commit 9c4626f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rules/android_lint.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ def _impl(ctx):
android_lint_results = _process_android_lint_issues(ctx, regenerate = False)

inputs = []
inputs.append(android_lint_results.output)
inputs.append(android_lint_results.xml_output)

files_output = []
if android_lint_results.xml_output != None:
files_output.append(android_lint_results.xml_output)
if android_lint_results.html_output != None:
files_output.append(android_lint_results.html_output)
return [
DefaultInfo(
runfiles = ctx.runfiles(files = inputs),
files = depset([android_lint_results.output]),
files = depset(files_output),
),
] + android_lint_results.providers

Expand Down

0 comments on commit 9c4626f

Please sign in to comment.