1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- name : google_maps_driver
15+ name : google_maps_driver
1616repository : https://github.com/googlemaps/flutter-driver-sdk
1717
1818packages :
@@ -50,7 +50,9 @@ scripts:
5050
5151 format :
5252 run : |
53- melos run format:dart && melos run format:ios && melos run format:android
53+ melos run format:dart && \
54+ melos run format:ios && \
55+ melos run format:android
5456 description : |
5557 Formats the code of all packages (Dart, iOS, Android).
5658
@@ -62,14 +64,15 @@ scripts:
6264
6365 format:ios :
6466 run : |
65- swiftformat .
67+ swiftformat --quiet .
6668 description : |
6769 Formats the code of iOS package with swiftformat.
6870 - Requires `swiftformat` (can be installed via Brew on macOS).
6971
7072 format:android :
7173 run : |
72- if [ ! -f android/gradlew ]; then flutter build apk --config-only; fi &&
74+ if [ -d "example" ]; then cd example; fi && \
75+ if [ ! -f android/gradlew ]; then flutter build apk --config-only; fi &&
7376 cd android && ./gradlew ktfmtFormat
7477 exec :
7578 concurrency : 1
@@ -79,7 +82,7 @@ scripts:
7982 packageFilters :
8083 dirExists :
8184 - android
82- scope : ' *example*'
85+ scope : " *example*"
8386
8487 test:dart :
8588 run : flutter pub get && flutter test
@@ -88,11 +91,12 @@ scripts:
8891 failFast : true
8992 description : Flutter test
9093 packageFilters :
91- fileExists : ' pigeons/messages.dart'
94+ fileExists : " pigeons/messages.dart"
9295
9396 test:android :
9497 run : |
95- if [ ! -f android/gradlew ]; then flutter build apk --config-only; fi \
98+ if [ -d "example" ]; then cd example; fi && \
99+ if [ ! -f android/gradlew ]; then flutter build apk --config-only; fi \
96100 && cd android && ./gradlew test
97101 exec :
98102 concurrency : 1
@@ -101,56 +105,63 @@ scripts:
101105 packageFilters :
102106 dirExists :
103107 - android
104- scope : ' *example*'
108+ scope : " *example*"
105109
106110 test:ios :
107- run : ../tools/test-ios.sh
111+ run : |
112+ if [ -d "example" ]; then cd example; fi && \
113+ ../tools/test-ios.sh
108114 exec :
109115 concurrency : 1
110116 failFast : true
111117 description : iOS native unit tests
112118 packageFilters :
113119 dirExists :
114120 - ios
115- scope : ' *example*'
121+ scope : " *example*"
116122
117123 flutter-build-android :
118- run : flutter pub get && flutter build apk && flutter build appbundle
124+ run : |
125+ if [ -d "example" ]; then cd example; fi && \
126+ flutter pub get && flutter build apk && flutter build appbundle
119127 exec :
120128 concurrency : 1
121129 failFast : true
122130 description : Build a specific example app for Android.
123131 packageFilters :
124132 dirExists :
125133 - android
126- scope : ' *example*'
134+ scope : " *example*"
127135
128136 flutter-build-ios :
129- run : flutter pub get && flutter build ios --release --no-codesign
137+ run : |
138+ if [ -d "example" ]; then cd example; fi && \
139+ flutter pub get && flutter build ios --release --no-codesign
130140 exec :
131141 concurrency : 1
132142 failFast : true
133143 description : Build a specific example app for iOS.
134144 packageFilters :
135145 dirExists :
136146 - ios
137- scope : ' *example*'
147+ scope : " *example*"
138148
139149 generate:mocks :
140150 exec : |
141- dart run build_runner build --delete-conflicting-outputs &&
142- melos run format --no-select && melos run add-license-header
151+ dart run build_runner build --delete-conflicting-outputs && \
152+ melos run format && \
153+ melos run add-license-header
143154 description : Generate the pigeon messages for all the supported packages.
144155 packageFilters :
145- fileExists : ' pigeons/messages.dart'
156+ fileExists : " pigeons/messages.dart"
146157
147158 generate:pigeon :
148159 exec : |
149- dart run pigeon --input ./pigeons/messages.dart &&
150- melos run format --no-select
160+ dart run pigeon --input ./pigeons/messages.dart && \
161+ melos run format
151162 description : Generate the pigeon messages for all the supported packages.
152163 packageFilters :
153- fileExists : ' pigeons/messages.dart'
164+ fileExists : " pigeons/messages.dart"
154165
155166 add-license-header :
156167 # If you add here another --ignore flag, add it also to
0 commit comments