Skip to content

Commit

Permalink
Access the first element of ctx.attr._jacoco_runtime, which becomes a…
Browse files Browse the repository at this point in the history
… list after being applied the android_platforms_transition.

PiperOrigin-RevId: 626486197
Change-Id: I86005957062b2b3b65952ed49fb32c79fa679a9c
  • Loading branch information
Zhaoqing Xu authored and Copybara-Service committed Apr 19, 2024
1 parent 549a8c1 commit 25c784b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/proguard.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _get_proguard_specs(
proguard_specs_for_manifest = []):
proguard_deps = utils.collect_providers(ProguardSpecProvider, utils.dedupe_split_attr(ctx.split_attr.deps))
if ctx.configuration.coverage_enabled and hasattr(ctx.attr, "_jacoco_runtime"):
proguard_deps.append(ctx.attr._jacoco_runtime[ProguardSpecProvider])
proguard_deps.append(utils.only(ctx.attr._jacoco_runtime)[ProguardSpecProvider])

local_proguard_specs = []
if ctx.files.proguard_specs:
Expand Down

0 comments on commit 25c784b

Please sign in to comment.