Merge "Run "prebuilt_postdeps" mutator again"
This commit is contained in:
commit
77e7d7769e
|
@ -215,7 +215,14 @@ func RegisterOverridePostDepsMutators(ctx RegisterMutatorsContext) {
|
|||
ctx.BottomUp("override_deps", overrideModuleDepsMutator).Parallel()
|
||||
ctx.TopDown("register_override", registerOverrideMutator).Parallel()
|
||||
ctx.BottomUp("perform_override", performOverrideMutator).Parallel()
|
||||
// overridableModuleDepsMutator calls OverridablePropertiesDepsMutator so that overridable modules can
|
||||
// add deps from overridable properties.
|
||||
ctx.BottomUp("overridable_deps", overridableModuleDepsMutator).Parallel()
|
||||
// Because overridableModuleDepsMutator is run after PrebuiltPostDepsMutator,
|
||||
// prebuilt's ReplaceDependencies doesn't affect to those deps added by overridable properties.
|
||||
// By running PrebuiltPostDepsMutator again after overridableModuleDepsMutator, deps via overridable properties
|
||||
// can be replaced with prebuilts.
|
||||
ctx.BottomUp("replace_deps_on_prebuilts_for_overridable_deps_again", PrebuiltPostDepsMutator).Parallel()
|
||||
ctx.BottomUp("replace_deps_on_override", replaceDepsOnOverridingModuleMutator).Parallel()
|
||||
}
|
||||
|
||||
|
|
|
@ -5207,8 +5207,7 @@ func TestApexWithAppImportsPrefer(t *testing.T) {
|
|||
}))
|
||||
|
||||
ensureExactContents(t, ctx, "myapex", "android_common_myapex_image", []string{
|
||||
// TODO(b/181974714) - this is wrong it should be "app/AppFoo/AppFooPrebuilt.apk"
|
||||
"app/AppFoo/AppFoo.apk",
|
||||
"app/AppFoo/AppFooPrebuilt.apk",
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue