forked from firka/flutter
This reverts commit ce94230281.
This commit is contained in:
@@ -39,8 +39,6 @@ const Map<String, String> kManuallyPinnedDependencies = <String, String>{
|
||||
'url_launcher_android': '6.0.17',
|
||||
// https://github.com/flutter/flutter/issues/115660
|
||||
'archive': '3.3.2',
|
||||
// https://github.com/flutter/flutter/issues/116376
|
||||
'path_provider_android': '2.0.21',
|
||||
};
|
||||
|
||||
class UpdatePackagesCommand extends FlutterCommand {
|
||||
@@ -1436,7 +1434,18 @@ String generateFakePubspec(
|
||||
if (verbose) {
|
||||
globals.printStatus('WARNING: the following packages use hard-coded version constraints:');
|
||||
}
|
||||
final Set<String> allTransitive = <String>{
|
||||
for (final PubspecDependency dependency in dependencies)
|
||||
dependency.name,
|
||||
};
|
||||
kManuallyPinnedDependencies.forEach((String package, String version) {
|
||||
// Don't add pinned dependency if it is not in the set of all transitive dependencies.
|
||||
if (!allTransitive.contains(package)) {
|
||||
if (verbose) {
|
||||
globals.printStatus('Skipping $package because it was not transitive');
|
||||
}
|
||||
return;
|
||||
}
|
||||
result.writeln(' $package: $version');
|
||||
if (verbose) {
|
||||
globals.printStatus(' - $package: $version');
|
||||
|
||||
Reference in New Issue
Block a user