summaryrefslogtreecommitdiff
path: root/java/bootclasspath_fragment.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2023-03-31 14:59:30 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-03-31 14:59:30 +0000
commit2d704998f4f1d8c0fdda1ecb34b825fe798f0521 (patch)
treecd50b267cadde3232393864ed048c306cf68c5e2 /java/bootclasspath_fragment.go
parentb72610665cea143f470e02b2230b3e8f198acbd2 (diff)
parent877f39d535edfb58d75eac843a818234d1c56657 (diff)
Merge changes I1ed3ab24,I68678ddf
* changes: Use stubs from .txt files for hiddenapi Rename JavaLibraryNameFromText function
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)
}