summaryrefslogtreecommitdiff
path: root/apex/apex.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-11-20 15:07:58 -0800
committer Colin Cross <ccross@android.com> 2024-12-12 14:55:28 -0800
commitaf4c8562a29e152cd473f64e938638b44d57078b (patch)
tree590129592e5da4dc09a68cf3d5e448ebb79f020c /apex/apex.go
parent8acea3e421fff22567fbbe21f0b91ca85857cf1c (diff)
Remove TestApexes from ApexInfo
TestApexes is used to enforce the "Stub libraries should have a single apex_available" check, but requires propagating information from multiple apexes in order to filter out the test apexes. Instead, all test apexes used by stub libraries will set apex_available_name to masquerade as their non-test counterpart for apex_available checks. Bug: 383592644 Test: TestStubLibrariesMultipleApexViolation Change-Id: I57dcf1e6fabbe70f40d702490b93fc7f28d6eba2
Diffstat (limited to 'apex/apex.go')
-rw-r--r--apex/apex.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/apex/apex.go b/apex/apex.go
index fb0d73068..2848ddcd6 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -995,17 +995,12 @@ func (a *apexBundle) ApexInfoMutator(mctx android.TopDownMutatorContext) {
}
a.properties.ApexVariationName = apexVariationName
- testApexes := []string{}
- if a.testApex {
- testApexes = []string{apexVariationName}
- }
apexInfo := android.ApexInfo{
ApexVariationName: apexVariationName,
MinSdkVersion: minSdkVersion,
Updatable: a.Updatable(),
UsePlatformApis: a.UsePlatformApis(),
InApexVariants: []string{apexVariationName},
- TestApexes: testApexes,
BaseApexName: mctx.ModuleName(),
ApexAvailableName: proptools.String(a.properties.Apex_available_name),
}