Skip to content

Commit

Permalink
Pass visibility from jetify_{aar,jvm}_import to jetify
Browse files Browse the repository at this point in the history
  • Loading branch information
dmivankov committed Jan 5, 2022
1 parent b57640b commit a73c630
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions private/rules/jetifier.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ jetify = rule(
implementation = _jetify_impl,
)

def jetify_aar_import(name, aar, _aar_import=None, **kwargs):
def jetify_aar_import(name, aar, _aar_import=None, visibility=None, **kwargs):
jetify(
name = "jetified_" + name,
srcs = [aar],
visibility = visibility,
)

if not _aar_import:
Expand All @@ -52,10 +53,11 @@ def jetify_aar_import(name, aar, _aar_import=None, **kwargs):
**kwargs
)

def jetify_jvm_import(name, jars, **kwargs):
def jetify_jvm_import(name, jars, visibility=None, **kwargs):
jetify(
name = "jetified_" + name,
srcs = jars,
visibility = visibility,
)

jvm_import(
Expand Down

0 comments on commit a73c630

Please sign in to comment.