summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2024-12-13 22:47:54 +0000
committer Yu Liu <yudiliu@google.com> 2024-12-13 22:47:54 +0000
commitf0040f3f124531b215ba6265b521b5b379c32ce6 (patch)
tree4f00ed1e945e0cb9e08ee31691d209d5c767c84e /api/api.go
parent1c63aa8cb45cce1b88e0574ac778a4f9ae6cea56 (diff)
Convert CombinedApis's GenerateAndroidBuildActions to use ModuleProxy.
Bug: 377723687 Test: Unit tests and compare the ninja and mk files generated. Change-Id: I6fe92d788c9bbbe3b5b476d61c94e1105d1859b0
Diffstat (limited to 'api/api.go')
-rw-r--r--api/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/api.go b/api/api.go
index aa89c2450288..b8f30a242320 100644
--- a/api/api.go
+++ b/api/api.go
@@ -103,7 +103,7 @@ func (a *CombinedApis) DepsMutator(ctx android.BottomUpMutatorContext) {
func (a *CombinedApis) GenerateAndroidBuildActions(ctx android.ModuleContext) {
ctx.WalkDeps(func(child, parent android.Module) bool {
- if _, ok := child.(java.AndroidLibraryDependency); ok && child.Name() != "framework-res" {
+ if _, ok := android.OtherModuleProvider(ctx, child, java.AndroidLibraryInfoProvider); ok && child.Name() != "framework-res" {
// Stubs of BCP and SSCP libraries should not have any dependencies on apps
// This check ensures that we do not run into circular dependencies when UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT=true
ctx.ModuleErrorf(