Apply PRODUCT_ENFORCE_RRO_TARGETS to dependencies.
With this change, users don't need to figure out which libraries actually hold the resources to be overlaid when targetting apps with a core lib dependency (e.g. Settings, SystemUI). Fixes: 169898727 Test: app_test.go Change-Id: I3c3b9dc0a377b1828db1199858a73d080a173205
This commit is contained in:
@@ -916,6 +916,10 @@ func (c *config) EnforceRROForModule(name string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *config) EnforceRROExemptedForModule(name string) bool {
|
||||
return InList(name, c.productVariables.EnforceRROExemptedTargets)
|
||||
}
|
||||
|
||||
func (c *config) EnforceRROExcludedOverlay(path string) bool {
|
||||
excluded := c.productVariables.EnforceRROExcludedOverlays
|
||||
if len(excluded) > 0 {
|
||||
|
Reference in New Issue
Block a user