Merge "Sort jarjar rename keys before using" into main am: 688f824e1a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2981731 Change-Id: I18ade8539893ac793663217f47c786e76f5a2aff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2408,7 +2408,8 @@ type JarJarProviderData struct {
|
|||||||
|
|
||||||
func (this JarJarProviderData) GetDebugString() string {
|
func (this JarJarProviderData) GetDebugString() string {
|
||||||
result := ""
|
result := ""
|
||||||
for k, v := range this.Rename {
|
for _, k := range android.SortedKeys(this.Rename) {
|
||||||
|
v := this.Rename[k]
|
||||||
if strings.Contains(k, "android.companion.virtual.flags.FakeFeatureFlagsImpl") {
|
if strings.Contains(k, "android.companion.virtual.flags.FakeFeatureFlagsImpl") {
|
||||||
result += k + "-->" + v + ";"
|
result += k + "-->" + v + ";"
|
||||||
}
|
}
|
||||||
@@ -2664,7 +2665,8 @@ func (module *Module) collectJarJarRules(ctx android.ModuleContext) *JarJarProvi
|
|||||||
// to "" won't be in this list because they shouldn't be renamed yet.
|
// to "" won't be in this list because they shouldn't be renamed yet.
|
||||||
func getJarJarRuleText(provider *JarJarProviderData) string {
|
func getJarJarRuleText(provider *JarJarProviderData) string {
|
||||||
result := ""
|
result := ""
|
||||||
for orig, renamed := range provider.Rename {
|
for _, orig := range android.SortedKeys(provider.Rename) {
|
||||||
|
renamed := provider.Rename[orig]
|
||||||
if renamed != "" {
|
if renamed != "" {
|
||||||
result += "rule " + orig + " " + renamed + "\n"
|
result += "rule " + orig + " " + renamed + "\n"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user