Merge "Prohibit dependencies outside of uses_sdks"

This commit is contained in:
Treehugger Robot
2019-10-18 00:30:18 +00:00
committed by Gerrit Code Review
8 changed files with 148 additions and 0 deletions

View File

@@ -1565,6 +1565,12 @@ func (j *Module) hasCode(ctx android.ModuleContext) bool {
return len(srcFiles) > 0 || len(ctx.GetDirectDepsWithTag(staticLibTag)) > 0
}
func (j *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool {
depTag := ctx.OtherModuleDependencyTag(dep)
// dependencies other than the static linkage are all considered crossing APEX boundary
return depTag == staticLibTag
}
//
// Java libraries (.jar file)
//