summaryrefslogtreecommitdiff
path: root/java/bootclasspath_fragment.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2023-03-29 16:19:51 +0000
committer Spandan Das <spandandas@google.com> 2023-03-30 00:34:36 +0000
commit877f39d535edfb58d75eac843a818234d1c56657 (patch)
tree28cdd443933b7c4c14b4f85d17c33553bf56a5af /java/bootclasspath_fragment.go
parent69f4218c4feaeca953237cd9e76a9a8cc423d3e3 (diff)
Use stubs from .txt files for hiddenapi
Hiddenapi processing uses the stub libraries to determine the api surface boundaries. Use JavaLibraryName function to redirect the usage of stubs from .txt files based on config. This should be a no-op for now. Bug: 271443071 Test: go test ./java Change-Id: I1ed3ab2485c903bc57f627dc1acf1a3fbc0a3c4d
Diffstat (limited to 'java/bootclasspath_fragment.go')
-rw-r--r--java/bootclasspath_fragment.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/bootclasspath_fragment.go b/java/bootclasspath_fragment.go
index c07a94a0b..f69256347 100644
--- a/java/bootclasspath_fragment.go
+++ b/java/bootclasspath_fragment.go
@@ -499,6 +499,8 @@ func (b *BootclasspathFragmentModule) DepsMutator(ctx android.BottomUpMutatorCon
for _, apiScope := range hiddenAPISdkLibrarySupportedScopes {
// Add a dependency onto a possibly scope specific stub library.
scopeSpecificDependency := apiScope.scopeSpecificStubModule(ctx, additionalStubModule)
+ // Use JavaApiLibraryName function to be redirected to stubs generated from .txt if applicable
+ scopeSpecificDependency = android.JavaApiLibraryName(ctx.Config(), scopeSpecificDependency)
tag := hiddenAPIStubsDependencyTag{apiScope: apiScope, fromAdditionalDependency: true}
ctx.AddVariationDependencies(nil, tag, scopeSpecificDependency)
}