-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SNAP FORK][UPSTREAMED] fix aar_import rule
- acls dont work with external dependencies (i.e @foo//) https://github.com/bazelbuild/rules_android/blob/pre-alpha/rules/acls.bzl#L293 - Propagate StarlarkAndroidResourcesInfo otherwise starlark rules wont be able to see those resources. - Stop adding library R classes as runtime dependencies: This behavior is not correct- the only authoritive r class should be the final merged R class. Adding library R classes as runtime dependencies creates resources erasures in android_local_test targets where each individual R class is added to the test classpath and incorrect Ids are used to query the resource table. - Merge aar library java_info with the resource java_info Libraries that directly depend on an AAR can depend as well on the AAR resource class so it is not enough to simply return the resource info as a dependency. see AarImport.java https://github.com/bazelbuild/bazel/blob/e0a9081f/src/main/java/com/google/devtools/build/lib/rules/android/AarImport.java#L166
- Loading branch information
Mauricio Galindo
committed
Jan 17, 2023
1 parent
e364356
commit 86ed4c9
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters