diff options
author | 2025-03-04 19:30:25 +0000 | |
---|---|---|
committer | 2025-03-07 23:16:55 +0000 | |
commit | e263a697bc5a17ddcabc36d9c16588a8743756db (patch) | |
tree | 1c3a55d22e89b70d2df663a1edeee432664e4f83 /java/app.go | |
parent | ef9e63e775493bd73cb28917ad59e6b10e5506b5 (diff) |
Convert WalkPayloadDeps to use ModuleProxy.
Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: If0d132c2310eb958c066747f9c16251cc24fedd0
Diffstat (limited to 'java/app.go')
-rw-r--r-- | java/app.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/app.go b/java/app.go index 3fab89119..f1dcf4176 100644 --- a/java/app.go +++ b/java/app.go @@ -1287,13 +1287,13 @@ func collectJniDeps(ctx android.ModuleContext, } func (a *AndroidApp) WalkPayloadDeps(ctx android.BaseModuleContext, do android.PayloadDepsCallback) { - ctx.WalkDeps(func(child, parent android.Module) bool { + ctx.WalkDepsProxy(func(child, parent android.ModuleProxy) bool { // TODO(ccross): Should this use android.DepIsInSameApex? Right now it is applying the android app // heuristics to every transitive dependency, when it should probably be using the heuristics of the // immediate parent. isExternal := !a.GetDepInSameApexChecker().OutgoingDepIsInSameApex(ctx.OtherModuleDependencyTag(child)) - if am, ok := child.(android.ApexModule); ok { - if !do(ctx, parent, am, isExternal) { + if am, ok := android.OtherModuleProvider(ctx, child, android.CommonModuleInfoProvider); ok && am.IsApexModule { + if !do(ctx, parent, child, isExternal) { return false } } @@ -1307,7 +1307,7 @@ func (a *AndroidApp) buildAppDependencyInfo(ctx android.ModuleContext) { } depsInfo := android.DepNameToDepInfoMap{} - a.WalkPayloadDeps(ctx, func(ctx android.BaseModuleContext, from android.Module, to android.ApexModule, externalDep bool) bool { + a.WalkPayloadDeps(ctx, func(ctx android.BaseModuleContext, from, to android.ModuleProxy, externalDep bool) bool { depName := to.Name() // Skip dependencies that are only available to APEXes; they are developed with updatability |