Skip to content

Commit

Permalink
Add support for signals package (#3011)
Browse files Browse the repository at this point in the history
* Add support for signals package

* Try using flutter pub get

* Refresh dependencies again

* Refresh retrieved pub dependencies
  • Loading branch information
parlough authored Jul 2, 2024
1 parent 0bed570 commit 3a61145
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 43 deletions.
13 changes: 1 addition & 12 deletions pkgs/dart_services/lib/src/project_creator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ProjectCreator {
dependencies: dependencies,
));

final exitCode = await _runDartPubGet(projectDirectory);
final exitCode = await runFlutterPubGet(_sdk, projectPath, log: _log);
if (exitCode != 0) {
throw StateError('pub get failed ($exitCode)');
}
Expand Down Expand Up @@ -112,17 +112,6 @@ ${_sdk.experiments.map((experiment) => ' - $experiment').join('\n')}
return contents;
}

Future<int> _runDartPubGet(Directory dir) async {
final process = await runWithLogging(
path.join(_sdk.dartSdkPath, 'bin', 'dart'),
arguments: ['pub', 'get'],
workingDirectory: dir.path,
environment: {'PUB_CACHE': _pubCachePath},
log: _log,
);
return process.exitCode;
}

Map<String, String> _dependencyVersions(Iterable<String> packages) {
final allVersions =
parsePubDependenciesFile(dependenciesFile: _dependenciesFile);
Expand Down
1 change: 1 addition & 0 deletions pkgs/dart_services/lib/src/project_templates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const Set<String> supportedBasicDartPackages = {
'rohd',
'rohd_vf',
'rxdart',
'signals',
'stack_trace',
'timezone',
'typed_data',
Expand Down
21 changes: 12 additions & 9 deletions pkgs/dart_services/tool/dependencies/pub_dependencies_beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
"flame_forge2d": "0.18.1",
"flame_splash_screen": "0.3.0",
"flame_tiled": "1.20.2",
"flutter_adaptive_scaffold": "0.1.11",
"flutter_adaptive_scaffold": "0.1.11+1",
"flutter_bloc": "8.1.6",
"flutter_hooks": "0.20.5",
"flutter_map": "7.0.1",
"flutter_markdown": "0.7.2",
"flutter_map": "7.0.2",
"flutter_markdown": "0.7.3",
"flutter_riverpod": "2.5.1",
"flutter_svg": "2.0.10+1",
"forge2d": "0.13.0",
"frontend_server_client": "4.0.0",
"glob": "2.1.2",
"go_router": "14.1.4",
"go_router": "14.2.0",
"google_fonts": "6.2.1",
"google_generative_ai": "0.4.3",
"hooks_riverpod": "2.5.1",
Expand Down Expand Up @@ -74,7 +74,7 @@
"path": "1.9.0",
"path_parsing": "1.0.1",
"path_provider": "2.1.3",
"path_provider_android": "2.2.5",
"path_provider_android": "2.2.6",
"path_provider_foundation": "2.4.0",
"path_provider_linux": "2.2.1",
"path_provider_platform_interface": "2.1.2",
Expand All @@ -91,7 +91,7 @@
"riverpod": "2.5.1",
"rohd": "0.5.3",
"rohd_vf": "0.5.0",
"rxdart": "0.27.7",
"rxdart": "0.28.0",
"shared_preferences": "2.2.3",
"shared_preferences_android": "2.2.3",
"shared_preferences_foundation": "2.4.0",
Expand All @@ -103,6 +103,9 @@
"shelf_packages_handler": "3.0.2",
"shelf_static": "1.1.2",
"shelf_web_socket": "2.0.0",
"signals": "5.2.2",
"signals_core": "5.2.2",
"signals_flutter": "5.2.2",
"source_map_stack_trace": "2.1.1",
"source_maps": "0.10.12",
"source_span": "1.10.0",
Expand All @@ -115,7 +118,7 @@
"test_api": "0.7.1",
"test_core": "0.6.2",
"tiled": "0.10.2",
"timezone": "0.9.3",
"timezone": "0.9.4",
"typed_data": "1.3.2",
"unicode": "0.3.1",
"url_launcher": "6.3.0",
Expand All @@ -130,8 +133,8 @@
"vector_graphics_codec": "1.1.11+1",
"vector_graphics_compiler": "1.1.11+1",
"vector_math": "2.1.4",
"video_player": "2.8.7",
"video_player_android": "2.5.0",
"video_player": "2.9.1",
"video_player_android": "2.5.1",
"video_player_avfoundation": "2.6.1",
"video_player_platform_interface": "6.2.2",
"video_player_web": "2.3.1",
Expand Down
29 changes: 16 additions & 13 deletions pkgs/dart_services/tool/dependencies/pub_dependencies_main.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_fe_analyzer_shared": "70.0.0",
"analyzer": "6.5.2",
"_fe_analyzer_shared": "72.0.0",
"analyzer": "6.7.0",
"animations": "2.0.11",
"archive": "3.6.1",
"args": "2.5.0",
Expand Down Expand Up @@ -31,17 +31,17 @@
"flame_forge2d": "0.18.1",
"flame_splash_screen": "0.3.0",
"flame_tiled": "1.20.2",
"flutter_adaptive_scaffold": "0.1.11",
"flutter_adaptive_scaffold": "0.1.11+1",
"flutter_bloc": "8.1.6",
"flutter_hooks": "0.20.5",
"flutter_map": "7.0.1",
"flutter_markdown": "0.7.2",
"flutter_map": "7.0.2",
"flutter_markdown": "0.7.3",
"flutter_riverpod": "2.5.1",
"flutter_svg": "2.0.10+1",
"forge2d": "0.13.0",
"frontend_server_client": "4.0.0",
"glob": "2.1.2",
"go_router": "14.1.4",
"go_router": "14.2.0",
"google_fonts": "6.2.1",
"google_generative_ai": "0.4.3",
"hooks_riverpod": "2.5.1",
Expand All @@ -60,7 +60,7 @@
"lists": "1.0.1",
"logger": "2.3.0",
"logging": "1.2.0",
"macros": "0.1.2-main.0",
"macros": "0.1.2-main.4",
"markdown": "7.2.2",
"matcher": "0.12.16+1",
"material_color_utilities": "0.11.1",
Expand All @@ -74,7 +74,7 @@
"path": "1.9.0",
"path_parsing": "1.0.1",
"path_provider": "2.1.3",
"path_provider_android": "2.2.5",
"path_provider_android": "2.2.6",
"path_provider_foundation": "2.4.0",
"path_provider_linux": "2.2.1",
"path_provider_platform_interface": "2.1.2",
Expand All @@ -91,7 +91,7 @@
"riverpod": "2.5.1",
"rohd": "0.5.3",
"rohd_vf": "0.5.0",
"rxdart": "0.27.7",
"rxdart": "0.28.0",
"shared_preferences": "2.2.3",
"shared_preferences_android": "2.2.3",
"shared_preferences_foundation": "2.4.0",
Expand All @@ -103,6 +103,9 @@
"shelf_packages_handler": "3.0.2",
"shelf_static": "1.1.2",
"shelf_web_socket": "2.0.0",
"signals": "5.2.2",
"signals_core": "5.2.2",
"signals_flutter": "5.2.2",
"source_map_stack_trace": "2.1.1",
"source_maps": "0.10.12",
"source_span": "1.10.0",
Expand All @@ -115,7 +118,7 @@
"test_api": "0.7.2",
"test_core": "0.6.4",
"tiled": "0.10.2",
"timezone": "0.9.3",
"timezone": "0.9.4",
"typed_data": "1.3.2",
"unicode": "0.3.1",
"url_launcher": "6.3.0",
Expand All @@ -130,12 +133,12 @@
"vector_graphics_codec": "1.1.11+1",
"vector_graphics_compiler": "1.1.11+1",
"vector_math": "2.1.4",
"video_player": "2.8.7",
"video_player_android": "2.5.0",
"video_player": "2.9.1",
"video_player_android": "2.5.1",
"video_player_avfoundation": "2.6.1",
"video_player_platform_interface": "6.2.2",
"video_player_web": "2.3.1",
"vm_service": "14.2.3",
"vm_service": "14.2.4",
"watcher": "1.1.0",
"web": "0.5.1",
"web_socket": "0.1.5",
Expand Down
21 changes: 12 additions & 9 deletions pkgs/dart_services/tool/dependencies/pub_dependencies_stable.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
"flame_forge2d": "0.18.1",
"flame_splash_screen": "0.3.0",
"flame_tiled": "1.20.2",
"flutter_adaptive_scaffold": "0.1.11",
"flutter_adaptive_scaffold": "0.1.11+1",
"flutter_bloc": "8.1.6",
"flutter_hooks": "0.20.5",
"flutter_map": "7.0.1",
"flutter_markdown": "0.7.2",
"flutter_map": "7.0.2",
"flutter_markdown": "0.7.3",
"flutter_riverpod": "2.5.1",
"flutter_svg": "2.0.10+1",
"forge2d": "0.13.0",
"frontend_server_client": "4.0.0",
"glob": "2.1.2",
"go_router": "14.1.4",
"go_router": "14.2.0",
"google_fonts": "6.2.1",
"google_generative_ai": "0.4.3",
"hooks_riverpod": "2.5.1",
Expand Down Expand Up @@ -73,7 +73,7 @@
"path": "1.9.0",
"path_parsing": "1.0.1",
"path_provider": "2.1.3",
"path_provider_android": "2.2.5",
"path_provider_android": "2.2.6",
"path_provider_foundation": "2.4.0",
"path_provider_linux": "2.2.1",
"path_provider_platform_interface": "2.1.2",
Expand All @@ -90,7 +90,7 @@
"riverpod": "2.5.1",
"rohd": "0.5.3",
"rohd_vf": "0.5.0",
"rxdart": "0.27.7",
"rxdart": "0.28.0",
"shared_preferences": "2.2.3",
"shared_preferences_android": "2.2.3",
"shared_preferences_foundation": "2.4.0",
Expand All @@ -102,6 +102,9 @@
"shelf_packages_handler": "3.0.2",
"shelf_static": "1.1.2",
"shelf_web_socket": "1.0.4",
"signals": "5.2.2",
"signals_core": "5.2.2",
"signals_flutter": "5.2.2",
"source_map_stack_trace": "2.1.1",
"source_maps": "0.10.12",
"source_span": "1.10.0",
Expand All @@ -114,7 +117,7 @@
"test_api": "0.7.0",
"test_core": "0.6.0",
"tiled": "0.10.2",
"timezone": "0.9.3",
"timezone": "0.9.4",
"typed_data": "1.3.2",
"unicode": "0.3.1",
"url_launcher": "6.3.0",
Expand All @@ -129,8 +132,8 @@
"vector_graphics_codec": "1.1.11+1",
"vector_graphics_compiler": "1.1.11+1",
"vector_math": "2.1.4",
"video_player": "2.8.7",
"video_player_android": "2.5.0",
"video_player": "2.9.1",
"video_player_android": "2.5.1",
"video_player_avfoundation": "2.6.1",
"video_player_platform_interface": "6.2.2",
"video_player_web": "2.3.1",
Expand Down

0 comments on commit 3a61145

Please sign in to comment.