Skip to content

[UBER FORK] Enable skipping unnecessary resources linking for android_library targets - #2

Open
oliviernotteghem wants to merge 29 commits into
Bencodes:blee/fork/mainfrom
oliviernotteghem:link_library_resources
Open

[UBER FORK] Enable skipping unnecessary resources linking for android_library targets#2
oliviernotteghem wants to merge 29 commits into
Bencodes:blee/fork/mainfrom
oliviernotteghem:link_library_resources

Conversation

@oliviernotteghem

Copy link
Copy Markdown

Re-implenent optimization bazelbuild/bazel#11294.
Fixes bazelbuild#157

Mauricio Galindo and others added 29 commits September 28, 2023 20:41
- acls dont work with external dependencies (i.e @foo//)
- Propagate StarlarkAndroidResourcesInfo otherwise starlark rules
  wont be able to see those resources.
- dont propagate r javas as deps. This will cause resource masking
  issues if two aars share the same package
…_tests

Robolectric tests need three main things:

- java classes
- the resource classes
- an archive of compiled resources

For the resources components this largely boils down to simply doing the
same we do for android_binary, therefore the code borrows heavily for
that implementation.
Warnings go to stdout/stderr which makes it incompatible with workers
The native version of the rules have this optimization (in our internal
fork). This is that implementationm, but in starlark.

See https://github.sc-corp.net/Snapchat/bazel/pull/126 for more details
@Bencodes
Bencodes force-pushed the blee/fork/main branch 3 times, most recently from 226ca01 to b3ac29d Compare January 9, 2025 21:57
@Bencodes
Bencodes force-pushed the blee/fork/main branch 2 times, most recently from bfbc327 to cae3bf0 Compare January 31, 2025 17:24
@Bencodes
Bencodes force-pushed the blee/fork/main branch 2 times, most recently from 1693d40 to 80592c3 Compare February 26, 2025 16:59
@Bencodes
Bencodes force-pushed the blee/fork/main branch 4 times, most recently from 658edb6 to 83ceb0d Compare March 26, 2025 15:17
@Bencodes
Bencodes force-pushed the blee/fork/main branch 2 times, most recently from 8f5951c to 1dc2487 Compare April 15, 2025 01:59
@Bencodes
Bencodes force-pushed the blee/fork/main branch 4 times, most recently from 9667416 to c671e29 Compare May 16, 2025 22:02
@Bencodes
Bencodes force-pushed the blee/fork/main branch 3 times, most recently from 9489da4 to af1cce6 Compare July 8, 2025 17:53
@Bencodes
Bencodes force-pushed the blee/fork/main branch 3 times, most recently from 523fa54 to 9b4aad4 Compare July 15, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants