Add UnsupportedAppUsage to java_aconfig_library dependency
Generated flag requires UnsupportedAppUsage annotation to expose the flag to CTS tests. Bug: 301272559 Test: presubit (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5e2c96a93b4c16b224c090570a10697400a42c0a) Merged-In: I90c87596ca80766ece429ddee1b45723b01d2760 Change-Id: I90c87596ca80766ece429ddee1b45723b01d2760
This commit is contained in:
committed by
Android Build Cherrypicker Worker
parent
d56338cc6f
commit
1b052b0078
@@ -58,6 +58,8 @@ func (callbacks *JavaAconfigDeclarationsLibraryCallbacks) DepsMutator(module *ja
|
||||
|
||||
// Add aconfig-annotations-lib as a dependency for the optimization / code stripping annotations
|
||||
module.AddSharedLibrary("aconfig-annotations-lib")
|
||||
// TODO(b/303773055): Remove the annotation after access issue is resolved.
|
||||
module.AddSharedLibrary("unsupportedappusage")
|
||||
}
|
||||
|
||||
func (callbacks *JavaAconfigDeclarationsLibraryCallbacks) GenerateSourceJarBuildActions(module *java.GeneratedJavaLibraryModule, ctx android.ModuleContext) android.Path {
|
||||
|
@@ -410,6 +410,7 @@ func gatherRequiredDepsForTest() string {
|
||||
"stub-annotations",
|
||||
|
||||
"aconfig-annotations-lib",
|
||||
"unsupportedappusage",
|
||||
}
|
||||
|
||||
for _, extra := range extraModules {
|
||||
|
Reference in New Issue
Block a user