Merge "Remove unnecessary slice in combined_apis bp2build converter"
This commit is contained in:
@@ -418,7 +418,6 @@ type bazelCombinedApisAttributes struct {
|
|||||||
// combined_apis bp2build converter
|
// combined_apis bp2build converter
|
||||||
func (a *CombinedApis) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
|
func (a *CombinedApis) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
|
||||||
basePrefix := "non-updatable"
|
basePrefix := "non-updatable"
|
||||||
scopeNames := []string{"public", "system", "module-lib", "system-server"}
|
|
||||||
scopeToSuffix := map[string]string{
|
scopeToSuffix := map[string]string{
|
||||||
"public": "-current.txt",
|
"public": "-current.txt",
|
||||||
"system": "-system-current.txt",
|
"system": "-system-current.txt",
|
||||||
@@ -426,8 +425,7 @@ func (a *CombinedApis) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
|
|||||||
"system-server": "-system-server-current.txt",
|
"system-server": "-system-server-current.txt",
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, scopeName := range scopeNames{
|
for scopeName, suffix := range scopeToSuffix{
|
||||||
suffix := scopeToSuffix[scopeName]
|
|
||||||
name := a.Name() + suffix
|
name := a.Name() + suffix
|
||||||
|
|
||||||
var scope bazel.StringAttribute
|
var scope bazel.StringAttribute
|
||||||
|
|||||||
Reference in New Issue
Block a user