Merge changes I505a7ad8,I92d88199 into main
* changes: Disable source apex variant using apex_available_name Skip `contents` validation of source bootclasspath fragments
This commit is contained in:
@@ -209,13 +209,18 @@ func disableSourceApexVariant(ctx android.BaseModuleContext) bool {
|
||||
psi = prebuiltSelectionInfo
|
||||
}
|
||||
})
|
||||
|
||||
// Find the apex variant for this module
|
||||
var apexVariantsWithoutTestApexes []string
|
||||
apexVariantsWithoutTestApexes := []string{}
|
||||
if apexInfo.BaseApexName != "" {
|
||||
// This is a transitive dependency of an override_apex
|
||||
apexVariantsWithoutTestApexes = []string{apexInfo.BaseApexName}
|
||||
apexVariantsWithoutTestApexes = append(apexVariantsWithoutTestApexes, apexInfo.BaseApexName)
|
||||
} else {
|
||||
_, apexVariantsWithoutTestApexes, _ = android.ListSetDifference(apexInfo.InApexVariants, apexInfo.TestApexes)
|
||||
_, variants, _ := android.ListSetDifference(apexInfo.InApexVariants, apexInfo.TestApexes)
|
||||
apexVariantsWithoutTestApexes = append(apexVariantsWithoutTestApexes, variants...)
|
||||
}
|
||||
if apexInfo.ApexAvailableName != "" {
|
||||
apexVariantsWithoutTestApexes = append(apexVariantsWithoutTestApexes, apexInfo.ApexAvailableName)
|
||||
}
|
||||
disableSource := false
|
||||
// find the selected apexes
|
||||
|
Reference in New Issue
Block a user