Merge "Exclude REL from preview API levels." into main
This commit is contained in:
commit
a1e713fe24
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue