mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Default to 2.7 when generating the package config (flutter/engine#22469)
For https://github.com/flutter/flutter/issues/70349
This commit is contained in:
parent
1d0a96bd3f
commit
f34d9eac78
@ -46,10 +46,10 @@ void main(List<String> args) async {
|
||||
if (!File.fromUri(pubspec).existsSync()) {
|
||||
continue;
|
||||
}
|
||||
// Default to 2.8 if not found to prevent all packages from accidentally
|
||||
// Default to 2.7 if not found to prevent all packages from accidentally
|
||||
// opting into NNBD.
|
||||
languageVersion = await languageVersionFromPubspec(pubspec, name) ??
|
||||
LanguageVersion(2, 8);
|
||||
LanguageVersion(2, 7);
|
||||
packages.add(Package(name, packageRoot,
|
||||
languageVersion: languageVersion, packageUriRoot: uri));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user