handle rc versions of gradle in version compare (#141612)

- handle number format exceptions and strip rc information from version compare
- add test that handles rc format

part 2/n https://github.com/flutter/flutter/issues/138523

Helpfully pointed out by [asaarnak](https://github.com/asaarnak) https://github.com/flutter/flutter/pull/139325#issuecomment-1892554584
This commit is contained in:
Reid Baker
2024-01-16 14:29:26 -05:00
committed by GitHub
parent 2442603cfc
commit 2b890af939
2 changed files with 26 additions and 4 deletions

View File

@@ -450,5 +450,6 @@ Future<void> main() async {
await task(combine(<TaskFunction>[
// ignore: avoid_redundant_argument_values
ModuleTest('module-gradle-7.6', gradleVersion: '7.6.3').call,
ModuleTest('module-gradle-7.6', gradleVersion: '7.6-rc-2').call,
]));
}