Merge "Update apex dependency even for test and non-installable APEXes"
This commit is contained in:
@@ -1042,12 +1042,7 @@ func apexDepsMutator(mctx android.BottomUpMutatorContext) {
|
||||
depName := mctx.OtherModuleName(child)
|
||||
// If the parent is apexBundle, this child is directly depended.
|
||||
_, directDep := parent.(*apexBundle)
|
||||
if a.installable() && !a.testApex {
|
||||
// TODO(b/123892969): Workaround for not having any way to annotate test-apexs
|
||||
// non-installable apex's cannot be installed and so should not prevent libraries from being
|
||||
// installed to the system.
|
||||
android.UpdateApexDependency(apexBundleName, depName, directDep)
|
||||
}
|
||||
android.UpdateApexDependency(apexBundleName, depName, directDep)
|
||||
|
||||
if am, ok := child.(android.ApexModule); ok && am.CanHaveApexVariants() &&
|
||||
(directDep || am.DepIsInSameApex(mctx, child)) {
|
||||
|
Reference in New Issue
Block a user