Revert "Remove package image dependency (#74763)" (#74869)

This reverts commit ca2d7b3d3c.
This commit is contained in:
Jenn Magder
2021-01-27 19:50:58 -08:00
committed by GitHub
parent ff87150ba9
commit 51b3edd45f
6 changed files with 103 additions and 57 deletions

View File

@@ -22,58 +22,54 @@ import '../runner/flutter_command.dart';
/// Map from package name to package version, used to artificially pin a pub
/// package version in cases when upgrading to the latest breaks Flutter.
const Map<String, String> _kManuallyPinnedDependencies = <String, String>{
// Add pinned packages here. Please leave a comment explaining why.
// PACKAGES WITH INCOMPATIBLE LATER VERSIONS
// Add pinned packages here.
// Dart analyzer does not catch renamed or deleted files.
// Therefore, we control the version of flutter_gallery_assets so that
// existing tests do not fail when the package has a new version.
'flutter_gallery_assets': '^0.2.0',
'flutter_template_images': '1.0.1', // Must always exactly match flutter_tools template.
'mockito': '4.1.1', // Prevent mockito from upgrading to the source gen version.
'mockito': '4.1.1', // Prevent mockito from upgrading to the source gen version.
'vm_service_client': '0.2.6+2', // Final version before being marked deprecated.
// DART TEAM OWNED NNBD DEPS
'archive': '">=3.0.0-nullsafety.0"',
'async': '">=2.5.0-nullsafety.3"',
'boolean_selector': '">=2.1.0-nullsafety.3"',
'characters': '">=1.1.0-nullsafety.5"',
'charcode': '">=1.2.0-nullsafety.3"',
'clock': '">=1.1.0-nullsafety.3"',
'collection': '">=1.15.0-nullsafety.5"',
'fake_async': '">=1.2.0-nullsafety.3"',
'intl': '">=0.17.0-nullsafety.2"',
'js': '">=0.6.3-nullsafety.3"',
'matcher': '">=0.12.10-nullsafety.3"',
'meta': '">=1.3.0-nullsafety.6"',
'path': '">=1.8.0-nullsafety.3"',
'pedantic': '">=1.10.0-nullsafety.3"',
'petitparser': '">=4.0.0-nullsafety.1"',
'pool': '">=1.5.0-nullsafety.3"',
'source_map_stack_trace': '">=2.1.0-nullsafety.4"',
'source_maps': '">=0.10.10-nullsafety.3"',
'source_span': '">=1.8.0-nullsafety.4"',
'stack_trace': '">=1.10.0-nullsafety.6"',
'stream_channel': '">=2.1.0-nullsafety.3"',
'string_scanner': '">=1.1.0-nullsafety.3"',
'term_glyph': '">=1.2.0-nullsafety.3"',
'test': '">=1.16.0-nullsafety.16"',
'test_api': '">=0.2.19-nullsafety.6"',
'test_core': '">=0.3.12-nullsafety.15"',
'typed_data': '">=1.3.0-nullsafety.5"',
'vector_math': '">=2.1.0-nullsafety.5"',
'xml': '">=5.0.0-nullsafety.1"',
// FLUTTER TEAM OWNED NNBD DEPS
'connectivity': '">=3.0.0-nullsafety.1"',
'device_info': '">=2.0.0-nullsafety.1"',
'file': '">=6.0.0-nullsafety.4"',
'platform': '">=3.0.0-nullsafety.4"',
'process': '">=4.0.0-nullsafety.4"',
'process_runner': '">=4.0.0-nullsafety.5"',
'url_launcher': '">=6.0.0-nullsafety.1"',
'video_player': '">=2.0.0-nullsafety.2"',
// MYSTERIES
'path_provider': '1.6.14',
'camera': '0.6.4+5',
'flutter_template_images': '1.0.1', // Must always exactly match flutter_tools template.
'shelf': '0.7.5',
// Dart team owned nnbd deps
'archive': '3.0.0-nullsafety.0',
'async': '2.5.0-nullsafety.3',
'boolean_selector': '2.1.0-nullsafety.3',
'characters': '1.1.0-nullsafety.5',
'charcode': '1.2.0-nullsafety.3',
'clock': '1.1.0-nullsafety.3',
'collection': '1.15.0-nullsafety.5',
'intl': '0.17.0-nullsafety.2',
'fake_async': '1.2.0-nullsafety.3',
'js': '0.6.3-nullsafety.3',
'matcher': '0.12.10-nullsafety.3',
'meta': '1.3.0-nullsafety.6',
'path': '1.8.0-nullsafety.3',
'pedantic': '1.10.0-nullsafety.3',
'pool': '1.5.0-nullsafety.3',
'source_maps': '0.10.10-nullsafety.3',
'source_map_stack_trace': '2.1.0-nullsafety.4',
'source_span': '1.8.0-nullsafety.4',
'stack_trace': '1.10.0-nullsafety.6',
'stream_channel': '2.1.0-nullsafety.3',
'string_scanner': '1.1.0-nullsafety.3',
'term_glyph': '1.2.0-nullsafety.3',
'test': '1.16.0-nullsafety.16',
'test_api': '0.2.19-nullsafety.6',
'test_core': '0.3.12-nullsafety.15',
'typed_data': '1.3.0-nullsafety.5',
'vector_math': '2.1.0-nullsafety.5',
// Flutter team owned nnbd deps
'platform': '3.0.0-nullsafety.4',
'file': '6.0.0-nullsafety.4',
'process': '4.0.0-nullsafety.4',
'process_runner': '4.0.0-nullsafety.5',
'path_provider': '1.6.14',
'video_player': '2.0.0-nullsafety.2',
'url_launcher': '6.0.0-nullsafety.1',
'connectivity': '3.0.0-nullsafety.1',
'device_info': '2.0.0-nullsafety.1',
'camera': '0.6.4+5',
};
class UpdatePackagesCommand extends FlutterCommand {