Skip to content

Commit

Permalink
Append srcjar to aar_import
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencodes committed Aug 25, 2021
1 parent 5697524 commit 7f33878
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions private/dependency_tree_parser.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def _generate_imports(repository_ctx, dep_tree, explicit_artifacts, neverlink_ar
target_import_string.append("\tsrcjar = \"%s\"," % srcjar_paths[target_label])
elif packaging == "aar":
target_import_string.append("\taar = \"%s\"," % artifact_path)
if srcjar_paths != None and target_label in srcjar_paths:
target_import_string.append("\tsrcjar = \"%s\"," % srcjar_paths[target_label])
if jetify and repository_ctx.attr.use_starlark_android_rules:
# Because jetifier.bzl cannot conditionally import the starlark rules
# (it's not a generated file), inject the aar_import rule from
Expand Down

0 comments on commit 7f33878

Please sign in to comment.