Translate SDK codenames to SDK versions for finalized releases am: 489912283e
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/18965894 Change-Id: I67c2cd6d39d13ff9bf00b7da5986664da4ae95c5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2700,7 +2700,10 @@ func formattedOptionalSdkLevelAttribute(ctx android.ModuleContext, attrName stri
|
||||
`"current" is not an allowed value for this attribute`)
|
||||
return ""
|
||||
}
|
||||
return formattedOptionalAttribute(attrName, value)
|
||||
// "safeValue" is safe because it translates finalized codenames to a string
|
||||
// with their SDK int.
|
||||
safeValue := apiLevel.String()
|
||||
return formattedOptionalAttribute(attrName, &safeValue)
|
||||
}
|
||||
|
||||
// formats an attribute for the xml permissions file if the value is not null
|
||||
|
Reference in New Issue
Block a user