diff options
| author | 2023-10-26 22:38:34 +0000 | |
|---|---|---|
| committer | 2023-11-08 18:37:24 +0000 | |
| commit | 1c4d94dccfd5490e98abe5ca95a29f0602c6047f (patch) | |
| tree | 92c3c732813048189d9e60a7ff97403a34e9d964 /java/kotlin_test.go | |
| parent | e3fcb41ff7dcdb2d65c068c575147f965e8afb47 (diff) | |
Use `all_apex_contributions` for source/prebuilts selection
This flattened singleton module explicitly lists by module name whether source or
prebuilt version of a module should be used. If a module appears in this
metadata module, it supersedes all other source vs prebuilts selection
mechanism
Implementation details
- Update the module dep chain from <source> --> <prebuilt> to <source>
--> <prebuilt> --> all_apex_contributions
- all_apex_contributions sets a provider which is bubbled up
to the source module. This requires changing `prebuilt_select` to a
bottom up mutator
- Update `usePrebuilt` to consult the new provider before falling back
to existing source vs selection mechanisms. If (foo|prebuilt_foo) is
listed in the selected `apex_contributions` modules, it
will be used superseding any other selection mechanisms.
- Update this depTag to IsMetaDepTag so that bootclasspath_fragment's
validation ignores this new dependency.
Test: Added unit tests to assert that this new mechanism supersedes
`use_source_config_var`
Bug: 308174768
Change-Id: I39a85639642711f3c96b6f18b94d626b55e80c66
Diffstat (limited to 'java/kotlin_test.go')
0 files changed, 0 insertions, 0 deletions