mirror of
https://github.com/flutter/samples.git
synced 2026-03-21 20:08:16 +00:00
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`.
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user