Merge changes Icbdf4979,I1a6f135d

* changes:
  Fix apex to override certificate
  Fix apex to follow deps of modules with stubs.
This commit is contained in:
Jooyung Han
2019-12-18 01:04:53 +00:00
committed by Gerrit Code Review
4 changed files with 155 additions and 10 deletions

View File

@@ -228,6 +228,14 @@ func UpdateApexDependency(apexName string, moduleName string, directDep bool) {
apexNames[apexName] = apexNames[apexName] || directDep
}
// TODO(b/146393795): remove this when b/146393795 is fixed
func ClearApexDependency() {
m := apexNamesMap()
for k := range m {
delete(m, k)
}
}
// Tests whether a module named moduleName is directly depended on by an APEX
// named apexName.
func DirectlyInApex(apexName string, moduleName string) bool {