Change enforceAppUpdatability to use ModuleProxy.
Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: I9113916e2124bc22a3d492dbe092a60e8809ab99
diff --git a/apex/apex.go b/apex/apex.go
index 1a598e5..e140689 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -2340,7 +2340,7 @@
}
if a.Updatable() {
// checking direct deps is sufficient since apex->apk is a direct edge, even when inherited via apex_defaults
- mctx.VisitDirectDeps(func(module android.Module) {
+ mctx.VisitDirectDepsProxy(func(module android.ModuleProxy) {
if appInfo, ok := android.OtherModuleProvider(mctx, module, java.AppInfoProvider); ok {
// ignore android_test_app
if !appInfo.TestHelperApp && !appInfo.Updatable {