mirror of
https://github.com/flutter/packages.git
synced 2025-08-06 17:28:42 +08:00
[various] Update minimum Flutter version to 3.3 (#3967)
Updates version-related checks for the 3.10 release: - Updates the N-1 and N-2 tests to 3.3 and 3.7. - Updates the minimum allowed SDK to declare support for to 3.3, matching our test matrix - Updates all packages that were supporting <3.3 to 3.3 (and equivalent Dart versions for non-Flutter packages) - Adds a Flutter->Dart mapping for 3.10 in the repo tooling.
This commit is contained in:
@ -91,6 +91,27 @@ void main() {
|
||||
expect(flutterVersion, '>=3.3.0');
|
||||
});
|
||||
|
||||
test('handles Flutter 3.10.0', () async {
|
||||
final RepositoryPackage package = createFakePackage(
|
||||
'a_package', packagesDir,
|
||||
isFlutter: true,
|
||||
dartConstraint: '>=2.12.0 <4.0.0',
|
||||
flutterConstraint: '>=2.10.0');
|
||||
|
||||
await runCapturingPrint(runner, <String>[
|
||||
'update-min-sdk',
|
||||
'--flutter-min',
|
||||
'3.10.0', // Corresponds to Dart 3.0.0
|
||||
]);
|
||||
|
||||
final String dartVersion =
|
||||
package.parsePubspec().environment?['sdk'].toString() ?? '';
|
||||
final String flutterVersion =
|
||||
package.parsePubspec().environment?['flutter'].toString() ?? '';
|
||||
expect(dartVersion, '>=3.0.0 <4.0.0');
|
||||
expect(flutterVersion, '>=3.10.0');
|
||||
});
|
||||
|
||||
test('does not update Flutter if it is already higher', () async {
|
||||
final RepositoryPackage package = createFakePackage(
|
||||
'a_package', packagesDir,
|
||||
|
Reference in New Issue
Block a user