Replace `pub run` usages with `dart run` (#2777)

Following up on https://github.com/dart-lang/pub/issues/4737, this PR
replaces deprecated `pub run` commands with `dart run`.
pull/2778/head
Sigurd Meldgaard 3 days ago committed by GitHub
parent 45e22460bf
commit 69092486bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -38,7 +38,7 @@ page.
* If the `schema.dart` is modified, the generated classes can be updated with
```bash
flutter pub run pigeon --input pigeon/schema.dart \
dart run pigeon --input pigeon/schema.dart \
--dart_out lib/api.dart \
--objc_header_out ../ios_books/IosBooks/api.h \
--objc_source_out ../ios_books/IosBooks/api.m \

@ -16,7 +16,7 @@ in `pigeon/schema.dart` is updated, the generated classes can also be re-
generated using:
```shell
flutter pub run pigeon --input pigeon/schema.dart \
dart run pigeon --input pigeon/schema.dart \
--dart_out lib/api.dart \
--objc_header_out ../ios_books/IosBooks/api.h \
--objc_source_out ../ios_books/IosBooks/api.m \

@ -1,5 +1,5 @@
#!/bin/sh
flutter pub run pigeon --input pigeon/schema.dart \
dart run pigeon --input pigeon/schema.dart \
--dart_out lib/api.dart \
--objc_header_out ../ios_books/IosBooks/api.h \
--objc_source_out ../ios_books/IosBooks/api.m \

@ -32,7 +32,7 @@ Future<void> generateJsonBindings() async => _logProcessOutput(
@Task()
Future<void> watch() async => _logProcessOutput(
Process.start('flutter', ['pub', 'run', 'build_runner', 'watch']),
Process.start('dart', ['run', 'build_runner', 'watch']),
);
@Task()

@ -32,7 +32,7 @@ Future<void> generateJsonBindings() async => _logProcessOutput(
@Task()
Future<void> watch() async => _logProcessOutput(
Process.start('flutter', ['pub', 'run', 'build_runner', 'watch']),
Process.start('dart', ['run', 'build_runner', 'watch']),
);
@Task()

@ -69,7 +69,7 @@ lib
The state management approach is intentionally low-level. That way, it's easy to
take this project and run with it, without having to learn new paradigms, or having
to remember to run `flutter pub run build_runner watch`. You are,
to remember to run `dart run build_runner watch`. You are,
of course, encouraged to use whatever paradigm, helper package or code generation
scheme that you prefer.
@ -522,7 +522,7 @@ To update the launcher icon, first change the files
Then, run the following:
```bash
flutter pub run flutter_launcher_icons:main
dart run flutter_launcher_icons:main
```
You can [configure](https://github.com/fluttercommunity/flutter_launcher_icons#book-guide)

@ -1,4 +1,4 @@
# Run with `flutter pub run ffigen --config ffigen.yaml`.
# Run with `dart run ffigen --config ffigen.yaml`.
name: PedometerBindings
description: "Bindings for CM pedometers"
language: objc

Loading…
Cancel
Save