Skip to content

Commit

Permalink
android_prebuilt_aar provides jar snapshot
Browse files Browse the repository at this point in the history
Summary: TSIA

Reviewed By: IanChilds

Differential Revision: D63880015

fbshipit-source-id: 179b917b46b103cba5067035e84355645407e86b
  • Loading branch information
navidqar authored and facebook-github-bot committed Oct 4, 2024
1 parent c309d11 commit 20c2a84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion android/android_prebuilt_aar.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ load(
"JavaClasspathEntry",
"create_abi",
"create_java_library_providers",
"generate_java_classpath_snapshot",
)
load("@prelude//java:java_toolchain.bzl", "JavaToolchainInfo")

Expand Down Expand Up @@ -73,13 +74,14 @@ def android_prebuilt_aar_impl(ctx: AnalysisContext) -> list[Provider]:
)

abi = None if java_toolchain.is_bootstrap_toolchain else create_abi(ctx.actions, java_toolchain.class_abi_generator, all_classes_jar)
abi_jar_snapshot = generate_java_classpath_snapshot(ctx.actions, java_toolchain.cp_snapshot_generator, abi or all_classes_jar, "")

library_output_classpath_entry = JavaClasspathEntry(
full_library = all_classes_jar,
abi = abi or all_classes_jar,
abi_as_dir = None,
required_for_source_only_abi = ctx.attrs.required_for_source_only_abi,
abi_jar_snapshot = None,
abi_jar_snapshot = abi_jar_snapshot,
)

java_library_info, java_packaging_info, global_code_info, shared_library_info, linkable_graph, cxx_resource_info, template_placeholder_info, java_library_intellij_info = create_java_library_providers(
Expand Down

0 comments on commit 20c2a84

Please sign in to comment.