Skip to content

Commit

Permalink
Allow enable_bootstrap_dexes for instrumentation tests
Browse files Browse the repository at this point in the history
Summary: Make it possible to pass this parameter through to the multidex calls from an instrumentation test.

Reviewed By: IanChilds

Differential Revision: D67545468

fbshipit-source-id: 83d9a15b08efad6c6bd4a9e640383f79399105e0
  • Loading branch information
wsanville authored and facebook-github-bot committed Jan 6, 2025
1 parent d57bd51 commit afc3a1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prelude/android/android_instrumentation_apk.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def android_instrumentation_apk_impl(ctx: AnalysisContext):
android_toolchain,
pre_dexed_libs,
dex_merge_config,
enable_bootstrap_dexes = ctx.attrs.enable_bootstrap_dexes,
)
else:
dex_files_info = merge_to_single_dex(ctx, android_toolchain, pre_dexed_libs)
Expand All @@ -96,6 +97,7 @@ def android_instrumentation_apk_impl(ctx: AnalysisContext):
ctx.attrs._android_toolchain[AndroidToolchainInfo],
jars_to_owners,
ctx.attrs.primary_dex_patterns,
enable_bootstrap_dexes = ctx.attrs.enable_bootstrap_dexes,
)
else:
dex_files_info = get_single_primary_dex(
Expand Down
1 change: 1 addition & 0 deletions prelude/decls/android_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ android_instrumentation_apk = prelude_rule(
"contacts": attrs.list(attrs.string(), default = []),
"default_host_platform": attrs.option(attrs.configuration_label(), default = None),
"disable_pre_dex": attrs.bool(default = False),
"enable_bootstrap_dexes": attrs.bool(default = False),
"includes_vector_drawables": attrs.bool(default = False),
"labels": attrs.list(attrs.string(), default = []),
"licenses": attrs.list(attrs.source(), default = []),
Expand Down

0 comments on commit afc3a1c

Please sign in to comment.