Merge "Exclude REL from preview API levels." into main am: a1e713fe24 am: f6dbb57c92

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2776068

Change-Id: I130dc5e0f161a83ace773c6e391263d8086fadfa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-10-09 21:50:34 +00:00 committed by Automerger Merge Worker
commit 279ec4b393

View file

@ -1011,12 +1011,18 @@ func (c *config) FinalApiLevels() []ApiLevel {
func (c *config) PreviewApiLevels() []ApiLevel { func (c *config) PreviewApiLevels() []ApiLevel {
var levels []ApiLevel var levels []ApiLevel
for i, codename := range c.PlatformVersionActiveCodenames() { i := 0
for _, codename := range c.PlatformVersionActiveCodenames() {
if codename == "REL" {
continue
}
levels = append(levels, ApiLevel{ levels = append(levels, ApiLevel{
value: codename, value: codename,
number: i, number: i,
isPreview: true, isPreview: true,
}) })
i++
} }
return levels return levels
} }