Commit 4c4ab7f
fix(matrix): Strip AGP pre-release and select Kotlin by value
Two related bugs in the AGP -> Kotlin lookup:
1. `agpVersion >= minAgp` evaluates to false for pre-release AGP with
the same major.minor.patch as a stable minAgp (semver rule:
9.3.0-alpha01 < 9.3.0). Strip the pre-release identifier before
the comparison so a row that should match isn't skipped.
2. `maxByOrNull { it.first }` picks the highest minAgp, not the
highest Kotlin. Works by coincidence today under monotonic data
but breaks on ties (e.g. Kotlin 1.4 and 1.5 both require AGP 7.0).
Switch to `it.second` to select by Kotlin version directly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 059375b commit 4c4ab7f
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | | - | |
109 | | - | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
0 commit comments