Merge "Exclude REL from preview API levels." into main am: a1e713fe24
am: f6dbb57c92
am: 279ec4b393
am: cb7153bde5
am: 8e194b6613
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2776068 Change-Id: I69f54c424860948fb76c80ddff1863bb3c5c0c9a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
54eedfbcd9
1 changed files with 7 additions and 1 deletions
|
@ -1015,12 +1015,18 @@ func (c *config) FinalApiLevels() []ApiLevel {
|
|||
|
||||
func (c *config) PreviewApiLevels() []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{
|
||||
value: codename,
|
||||
number: i,
|
||||
isPreview: true,
|
||||
})
|
||||
i++
|
||||
}
|
||||
return levels
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue