Skip to content

Commit e4020cc

Browse files
a7medevHeshamMegid
authored andcommitted
chore: use dart run instead of flutter pub run (#401)
1 parent af5f0c2 commit e4020cc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- checkout
9898
- run: flutter pub get
9999
- run: sh ./scripts/pigeon.sh
100-
- run: flutter pub run build_runner build --delete-conflicting-outputs
100+
- run: dart run build_runner build --delete-conflicting-outputs
101101
- run: flutter test --coverage
102102
- run:
103103
working_directory: coverage
@@ -194,7 +194,7 @@ jobs:
194194
- checkout
195195
- run: flutter pub get
196196
- run: sh ./scripts/pigeon.sh
197-
- run: flutter pub run build_runner build --delete-conflicting-outputs
197+
- run: dart run build_runner build --delete-conflicting-outputs
198198
- run:
199199
name: Perform Static Analysis
200200
command: flutter analyze
@@ -206,10 +206,10 @@ jobs:
206206
- checkout
207207
- run: flutter pub get
208208
- run: sh ./scripts/pigeon.sh
209-
- run: flutter pub run build_runner build --delete-conflicting-outputs
209+
- run: dart run build_runner build --delete-conflicting-outputs
210210
- run:
211211
name: Check Package Score
212-
command: flutter pub run pana --no-warning --exit-code-threshold 0
212+
command: dart run pana --no-warning --exit-code-threshold 0
213213
- run: flutter pub publish --dry-run
214214

215215
release:

scripts/pigeon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ generate_pigeon() {
1414
name_snake=$(basename $name_file .api.dart)
1515
name_pascal=$(echo "$name_snake" | perl -pe 's/(^|_)./uc($&)/ge;s/_//g')
1616

17-
flutter pub run pigeon \
17+
dart run pigeon \
1818
--input "pigeons/$name_snake.api.dart" \
1919
--dart_out "$DIR_DART/$name_snake.api.g.dart" \
2020
--objc_header_out "$DIR_IOS/${name_pascal}Pigeon.h" \

0 commit comments

Comments
 (0)