Skip to content

Commit

Permalink
Populate provider AndroidFeatureFlagSet in starlark android_binary. T…
Browse files Browse the repository at this point in the history
…his aligns with Native impl.

PiperOrigin-RevId: 633281347
Change-Id: Id57b4acc564efee3d9de0045b3dec5eabb87f991
  • Loading branch information
Zhaoqing Xu authored and copybara-github committed May 13, 2024
1 parent b79bca9 commit 25dedbe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rules/android_binary_internal/impl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,13 @@ def finalize(
],
)

providers.append(
AndroidFeatureFlagSet({
flag.label: value
for flag, value in ctx.attr.feature_flags.items()
}),
)

if is_instrumentation(ctx):
providers.append(
AndroidInstrumentationInfo(target = ctx.attr.instruments[ApkInfo]),
Expand Down

0 comments on commit 25dedbe

Please sign in to comment.