Merge "Revert "Don't add uses_libs
/optional_uses_libs
to the manifest_fixer.""
This commit is contained in:
@@ -724,8 +724,10 @@ func (j *Module) deps(ctx android.BottomUpMutatorContext) {
|
||||
if component, ok := dep.(SdkLibraryComponentDependency); ok {
|
||||
if lib := component.OptionalSdkLibraryImplementation(); lib != nil {
|
||||
// Add library as optional if it's one of the optional compatibility libs.
|
||||
optional := android.InList(*lib, dexpreopt.OptionalCompatUsesLibs)
|
||||
tag := makeUsesLibraryDependencyTag(dexpreopt.AnySdkVersion, optional, true)
|
||||
tag := usesLibReqTag
|
||||
if android.InList(*lib, dexpreopt.OptionalCompatUsesLibs) {
|
||||
tag = usesLibOptTag
|
||||
}
|
||||
ctx.AddVariationDependencies(nil, tag, *lib)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user