summaryrefslogtreecommitdiff
path: root/java/hiddenapi_singleton.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2025-01-14 15:50:48 -0800
committer Colin Cross <ccross@android.com> 2025-02-07 16:00:56 -0800
commitd649580f3d46b39f8837d668063f9b8ebde0474a (patch)
tree819a6a4beb1eca9e6a705bb0f8ac28389b355b6e /java/hiddenapi_singleton.go
parentbdd344b91a5990d797eef508821a877febd0d7a0 (diff)
Convert apex transition tag to dependency on apex
When the apex mutator moves to using an info struct instead of a simple string it becomes difficult to add a dependency directly on the apex variation of a module, as that would require constructing a matching ApexInfo to locate it. Simplify adding the dependency by adding it on the apex instead, and then traversing from the apex to the desired module inside the apex. This causes a few changes in behaviors that require updating tests to match. When AlwaysUsePrebuiltSdks is set, the previous behavior was to use the fragment and its dependencies from the source module for the platform bootclasspath. Since the fragment is now found by traversing from the apex, and the prebuilt apex is preferred, the fragment from the prebuilt will now be found instead. prebuilt_bootclasspath lists fragments in apexes that it depends on. Previously it would depend on the apex variant of the fragment, which then allowed the fragment to be replaced by the variant from an override apex that set apex_name. Now it always depends on the original apex to find the fragment. Test: go test ./... Bug: 372543712 Change-Id: I1a92ff461d4706cf68a0b8b37e53dea412efb8bf
Diffstat (limited to 'java/hiddenapi_singleton.go')
0 files changed, 0 insertions, 0 deletions