summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
authorJaewoong Jung <jungjw@google.com>2020-10-06 18:56:10 -0700
committerJaewoong Jung <jungjw@google.com>2020-10-12 10:34:36 -0700
commitc779cd403f2e6a522bd71de45844f5109e641992 (patch)
tree4df71bb978f9cf5233c34711b15dfa64d274f376 /java/java_test.go
parent3c72ce8696d83466d7ef815a5cdd18df4fd1a59a (diff)
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
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go
index f16639aa8..bb200d358 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -102,6 +102,10 @@ func testContext() *android.TestContext {
dexpreopt.RegisterToolModulesForTest(ctx)
+ ctx.PostDepsMutators(func(ctx android.RegisterMutatorsContext) {
+ ctx.TopDown("propagate_rro_enforcement", propagateRROEnforcementMutator).Parallel()
+ })
+
return ctx
}