Skip to content

Commit

Permalink
Merge pull request #129 from Bencodes:patch-3
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 563830056
Change-Id: Iab95c67914c7deed6467830b5ca72fb2fd33a3ea
  • Loading branch information
copybara-github committed Sep 8, 2023
2 parents 71f6188 + 5562207 commit 141e03d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rules/android_binary_internal/r8.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ def process_r8(ctx, jvm_ctx, packaged_resources_ctx, build_info_ctx, **_unused_c

android_jar = get_android_sdk(ctx).android_jar
proguard_specs = proguard.get_proguard_specs(ctx, packaged_resources_ctx.resource_proguard_config)
min_sdk_version = getattr(ctx.attr, "min_sdk_version", None)

args = ctx.actions.args()
args.add("--release")
if min_sdk_version:
args.add("--min-api", min_sdk_version)
args.add("--output", dexes_zip)
args.add_all(proguard_specs, before_each = "--pg-conf")
args.add("--lib", android_jar)
Expand Down

0 comments on commit 141e03d

Please sign in to comment.