Revert "[flutter_tools] Pin path_provider_android and roll pub packages (#116377)" (#116424)

This reverts commit ce94230281.
This commit is contained in:
Zachary Anderson
2022-12-02 08:30:14 -08:00
committed by GitHub
parent ce94230281
commit 7c0f882a92
38 changed files with 124 additions and 115 deletions

View File

@@ -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');