mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.9 KiB
64 lines
1.9 KiB
5 years ago
|
#!/bin/bash
|
||
|
|
||
6 years ago
|
set -e
|
||
|
|
||
5 years ago
|
declare -ar PROJECT_NAMES=(
|
||
5 years ago
|
"add_to_app/flutter_module" \
|
||
|
"add_to_app/flutter_module_using_plugin" \
|
||
4 years ago
|
"add_to_app/flutter_module_books" \
|
||
5 years ago
|
"animations" \
|
||
4 years ago
|
# Tracking issue: https://github.com/flutter/samples/issues/652
|
||
|
# "flutter_maps_firestore" \
|
||
5 years ago
|
"infinite_list" \
|
||
4 years ago
|
"ios_app_clip" \
|
||
4 years ago
|
# Tracking issue: https://github.com/flutter/samples/issues/653
|
||
|
# "isolate_example" \
|
||
5 years ago
|
"jsonexample" \
|
||
4 years ago
|
# Tracking issue: https://github.com/flutter/samples/issues/655
|
||
|
# "place_tracker" \
|
||
|
# Tracking issue: https://github.com/flutter/samples/issues/656
|
||
|
# "platform_channels" \
|
||
5 years ago
|
"platform_design"
|
||
|
"platform_view_swift" \
|
||
|
"provider_counter" \
|
||
4 years ago
|
# Tracking issue: https://github.com/flutter/samples/issues/657
|
||
|
# "provider_shopper" \
|
||
|
# Tracking issue: https://github.com/flutter/samples/issues/658
|
||
|
# "testing_app" \
|
||
|
# Tracking issue: https://github.com/flutter/samples/issues/659
|
||
|
# "experimental/federated_plugin/federated_plugin" \
|
||
|
"experimental/null_safety/null_safe_app" \
|
||
|
"experimental/null_safety/null_unsafe_app" \
|
||
|
"experimental/veggieseasons" \
|
||
|
"experimental/web_dashboard" \
|
||
6 years ago
|
)
|
||
6 years ago
|
|
||
6 years ago
|
for PROJECT_NAME in "${PROJECT_NAMES[@]}"
|
||
|
do
|
||
4 years ago
|
echo "== Testing '${PROJECT_NAME}' on Flutter's beta channel =="
|
||
5 years ago
|
pushd "${PROJECT_NAME}"
|
||
6 years ago
|
|
||
4 years ago
|
# Grab packages.
|
||
4 years ago
|
flutter pub get
|
||
4 years ago
|
|
||
5 years ago
|
# Run the analyzer to find any static analysis issues.
|
||
4 years ago
|
flutter analyze
|
||
6 years ago
|
|
||
5 years ago
|
# Reformat the web plugin registrant, if necessary.
|
||
|
if [ -f "lib/generated_plugin_registrant.dart" ]
|
||
|
then
|
||
4 years ago
|
echo "Renaming $(pwd)/lib/generated_plugin_registrant.dart"
|
||
4 years ago
|
flutter format "lib/generated_plugin_registrant.dart"
|
||
5 years ago
|
fi
|
||
|
|
||
5 years ago
|
# Run the formatter on all the dart files to make sure everything's linted.
|
||
4 years ago
|
flutter format -n --set-exit-if-changed .
|
||
6 years ago
|
|
||
5 years ago
|
# Run the actual tests.
|
||
4 years ago
|
flutter test
|
||
6 years ago
|
|
||
5 years ago
|
popd
|
||
6 years ago
|
done
|
||
6 years ago
|
|
||
|
echo "-- Success --"
|