diff --git a/pkgs/dart_services/tool/grind.dart b/pkgs/dart_services/tool/grind.dart index 05bbec33f..a9ac2392c 100644 --- a/pkgs/dart_services/tool/grind.dart +++ b/pkgs/dart_services/tool/grind.dart @@ -32,9 +32,6 @@ Future serve() async { ]); } -/// Creates an SDK. -Sdk _getSdk() => Sdk(); - final List compilationArtifacts = [ 'dart_sdk.js', 'flutter_web.js', @@ -44,7 +41,7 @@ final List compilationArtifacts = [ 'google storage') void validateStorageArtifacts() async { final args = context.invocation.arguments; - final sdk = _getSdk(); + final sdk = Sdk(); final version = sdk.dartVersion; final bucket = switch (args.hasOption('bucket')) { true => args.getOption('bucket'), @@ -85,7 +82,7 @@ void buildProjectTemplates() async { await templatesDirectory.delete(recursive: true); } - final sdk = _getSdk(); + final sdk = Sdk(); final projectCreator = ProjectCreator( sdk, templatesPath, @@ -103,7 +100,7 @@ void buildProjectTemplates() async { @Task('build the sdk compilation artifacts for upload to google storage') @Depends(updatePubDependencies) void buildStorageArtifacts() async { - final sdk = _getSdk(); + final sdk = Sdk(); delete(getDir('artifacts')); final instructions = []; @@ -303,7 +300,7 @@ Future _run( @Task('Update pubspec dependency versions') @Depends(buildProjectTemplates) void updatePubDependencies() async { - final sdk = _getSdk(); + final sdk = Sdk(); await _updateDependenciesFile( flutterToolPath: sdk.flutterToolPath, channel: sdk.channel, sdk: sdk); }