Drop use_source_config_var from prebuilt selection
This CL makes this property a no-op from the perspective of prebuilt selection. The primary user of this was mainline modules, but they have now switched to RELEASE_APEX_CONTRIBUTIONS_* for prebuilt selection, both for internal `main` development and in partner drops. Test: in internal, lunch cf_x86_64_phone-next-userdebug; m nothing; and verified there was a path to the prebuilt bt apex Test: in partner workspace, lunch gsi_partner_arm-ap31-userdebug; m nothing; and verified that there was a path to the prebuilt adservices apex Bug: 308188211 Change-Id: I124a6dada5c20aca4bdebf70dcbe5bbec28cefbe
This commit is contained in:
@@ -706,11 +706,6 @@ func (p *Prebuilt) usePrebuilt(ctx BaseMutatorContext, source Module, prebuilt M
|
||||
return true
|
||||
}
|
||||
|
||||
// If the use_source_config_var property is set then it overrides the prefer property setting.
|
||||
if configVar := p.properties.Use_source_config_var; configVar != nil {
|
||||
return !ctx.Config().VendorConfig(proptools.String(configVar.Config_namespace)).Bool(proptools.String(configVar.Var_name))
|
||||
}
|
||||
|
||||
// TODO: use p.Properties.Name and ctx.ModuleDir to override preference
|
||||
return Bool(p.properties.Prefer)
|
||||
}
|
||||
|
Reference in New Issue
Block a user