Skip to content

Commit

Permalink
Make more Dart team packages available and remove deprecated ones (#2883
Browse files Browse the repository at this point in the history
)
  • Loading branch information
parlough authored Feb 29, 2024
1 parent d4f8b6a commit 567ff3f
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 121 deletions.
12 changes: 6 additions & 6 deletions pkgs/dart_services/lib/src/analysis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,6 @@ class AnalysisServerWrapper {
'https://github.com/dart-lang/dart-pad/wiki/Package-and-plugin-support#deprecated-firebase-packages',
location: import.getLocation(source),
));
} else if (!isSupportedPackage(packageName)) {
importIssues.add(api.AnalysisIssue(
kind: 'warning',
message: "Unsupported package: 'package:$packageName'.",
location: import.getLocation(source),
));
} else if (isDeprecatedPackage(packageName)) {
importIssues.add(api.AnalysisIssue(
kind: 'warning',
Expand All @@ -349,6 +343,12 @@ class AnalysisServerWrapper {
'Package-and-plugin-support#deprecated-packages',
location: import.getLocation(source),
));
} else if (!isSupportedPackage(packageName)) {
importIssues.add(api.AnalysisIssue(
kind: 'warning',
message: "Unsupported package: 'package:$packageName'.",
location: import.getLocation(source),
));
}
} else {
importIssues.add(api.AnalysisIssue(
Expand Down
9 changes: 3 additions & 6 deletions pkgs/dart_services/lib/src/project_templates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ const Set<String> supportedFlutterPackages = {
'flutter_hooks',
'flutter_map',
'flutter_markdown',
'flutter_processing',
'flutter_riverpod',
'flutter_svg',
'go_router',
'google_fonts',
'google_generative_ai',
'hooks_riverpod',
'provider',
'riverpod_navigator',
'shared_preferences',
'url_launcher',
'video_player',
Expand All @@ -82,10 +80,12 @@ const Set<String> _packagesIndicatingFlutter = {
/// The set of basic Dart (non-Flutter) packages which can be directly imported
/// into a script.
const Set<String> supportedBasicDartPackages = {
'async',
'basics',
'bloc',
'characters',
'collection',
'convert',
'cross_file',
'dartz',
'english_words',
Expand All @@ -104,7 +104,7 @@ const Set<String> supportedBasicDartPackages = {
'rohd_vf',
'rxdart',
'timezone',
'tuple',
'typed_data',
'vector_math',
'web',
'yaml',
Expand All @@ -113,9 +113,6 @@ const Set<String> supportedBasicDartPackages = {

/// The set of all packages whose support in DartPad is deprecated.
const Set<String> _deprecatedPackages = {
'tuple',
'flutter_processing',
'riverpod_navigator',
'js',
};

Expand Down
28 changes: 14 additions & 14 deletions pkgs/dart_services/pubspec.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 24 additions & 32 deletions pkgs/dart_services/tool/dependencies/pub_dependencies_beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,42 @@
"coverage": "1.7.2",
"creator": "0.3.3",
"creator_core": "0.3.3",
"cross_file": "0.3.3+8",
"cross_file": "0.3.4+1",
"crypto": "3.0.3",
"csslib": "1.0.0",
"dartz": "0.10.1",
"english_words": "4.0.0",
"equatable": "2.0.5",
"fake_async": "1.3.1",
"fast_immutable_collections": "10.1.1",
"fast_noise": "1.0.1",
"ffi": "2.1.2",
"file": "7.0.0",
"fixnum": "1.1.0",
"flame": "1.15.0",
"flame_fire_atlas": "1.4.8",
"flame_forge2d": "0.16.0+5",
"flame_splash_screen": "0.2.0",
"flame_tiled": "1.18.4",
"flame": "1.16.0",
"flame_fire_atlas": "1.5.0",
"flame_forge2d": "0.17.0",
"flame_splash_screen": "0.3.0",
"flame_tiled": "1.19.0",
"flutter_adaptive_scaffold": "0.1.8",
"flutter_bloc": "8.1.4",
"flutter_hooks": "0.18.6",
"flutter_hooks": "0.20.5",
"flutter_map": "6.1.0",
"flutter_markdown": "0.6.19",
"flutter_processing": "0.2.0",
"flutter_markdown": "0.6.20+1",
"flutter_riverpod": "2.4.10",
"flutter_spinkit": "5.2.0",
"flutter_svg": "2.0.9",
"flutter_svg": "2.0.10+1",
"forge2d": "0.12.2",
"frontend_server_client": "3.2.0",
"glob": "2.1.2",
"go_router": "13.2.0",
"google_fonts": "6.1.0",
"google_generative_ai": "0.2.0",
"google_generative_ai": "0.2.2",
"hooks_riverpod": "2.4.10",
"html": "0.15.4",
"http": "1.2.0",
"http": "1.2.1",
"http_multi_server": "3.2.1",
"http_parser": "4.0.2",
"image": "3.3.0",
"intl": "0.19.0",
"io": "1.0.4",
"js": "0.7.0",
"js": "0.7.1",
"latlong2": "0.9.0",
"leak_tracker": "10.0.3",
"leak_tracker_flutter_testing": "3.0.2",
Expand Down Expand Up @@ -89,12 +84,10 @@
"polylabel": "1.0.1",
"pool": "1.5.1",
"proj4dart": "2.1.0",
"provider": "6.1.1",
"provider": "6.1.2",
"pub_semver": "2.1.4",
"quiver": "3.2.1",
"riverpod": "2.5.0",
"riverpod_navigator": "1.0.10",
"riverpod_navigator_core": "1.0.10",
"rohd": "0.5.2",
"rohd_vf": "0.5.0",
"rxdart": "0.27.7",
Expand All @@ -103,7 +96,7 @@
"shared_preferences_foundation": "2.3.5",
"shared_preferences_linux": "2.3.2",
"shared_preferences_platform_interface": "2.3.2",
"shared_preferences_web": "2.2.2",
"shared_preferences_web": "2.3.0",
"shared_preferences_windows": "2.3.2",
"shelf": "1.4.1",
"shelf_packages_handler": "3.0.2",
Expand All @@ -122,35 +115,34 @@
"test_core": "0.6.0",
"tiled": "0.10.2",
"timezone": "0.9.2",
"tuple": "2.0.2",
"typed_data": "1.3.2",
"unicode": "0.3.1",
"url_launcher": "6.2.4",
"url_launcher": "6.2.5",
"url_launcher_android": "6.3.0",
"url_launcher_ios": "6.2.4",
"url_launcher_ios": "6.2.5",
"url_launcher_linux": "3.1.1",
"url_launcher_macos": "3.1.0",
"url_launcher_platform_interface": "2.3.2",
"url_launcher_web": "2.2.3",
"url_launcher_web": "2.3.0",
"url_launcher_windows": "3.1.1",
"vector_graphics": "1.1.10+1",
"vector_graphics_codec": "1.1.10+1",
"vector_graphics_compiler": "1.1.10+1",
"vector_graphics": "1.1.11+1",
"vector_graphics_codec": "1.1.11+1",
"vector_graphics_compiler": "1.1.11+1",
"vector_math": "2.1.4",
"video_player": "2.8.2",
"video_player_android": "2.4.12",
"video_player_avfoundation": "2.5.6",
"video_player_platform_interface": "6.2.2",
"video_player_web": "2.1.3",
"video_player_web": "2.2.0",
"vm_service": "14.0.0",
"watcher": "1.1.0",
"web": "0.4.2",
"web_socket_channel": "2.4.3",
"web": "0.5.0",
"web_socket_channel": "2.4.4",
"webkit_inspection_protocol": "1.2.1",
"win32": "5.2.0",
"wkt_parser": "2.0.0",
"xdg_directories": "1.0.4",
"xml": "6.5.0",
"yaml": "3.1.2",
"yaml_edit": "2.1.1"
"yaml_edit": "2.2.0"
}
Loading

0 comments on commit 567ff3f

Please sign in to comment.