Moving Shrine into a material_studies subdirectory ()

pull/136/head
Andrew Brogdon 6 years ago committed by GitHub
parent c68165e8a5
commit cf270c32f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -144,7 +144,7 @@ thread and into an isolate.
## Demos
#### [Shrine](shrine) _(Flutter team)_
#### [Shrine](material_studies/shrine) _(Flutter team)_
The Shrine demo app from the Flutter team. It's designed to showcase how apps
can put their own spin on the Material Design components and how to use
ScopedModel to maintain app state across screens.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before

Width:  |  Height:  |  Size: 239 B

After

Width:  |  Height:  |  Size: 239 B

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Before

Width:  |  Height:  |  Size: 302 B

After

Width:  |  Height:  |  Size: 302 B

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 149 B

@ -1,5 +1,17 @@
set -e
# Backs up one directory at a time, looking for one called "flutter".
function getFlutterPath() {
local path=".."
local counter=0
while [[ "${counter}" -lt 10 ]]; do
[ -d "${path}/flutter" ] && echo "${path}/flutter" && return 0
let counter++
path="${path}/.."
done
}
declare -a PROJECT_NAMES=(
"animations" \
"flutter_maps_firestore" \
@ -10,7 +22,7 @@ declare -a PROJECT_NAMES=(
"platform_view_swift" \
"provider_counter" \
"provider_shopper" \
"shrine" \
"material_studies/shrine" \
"veggieseasons" \
)
@ -19,14 +31,22 @@ do
echo "== Testing '${PROJECT_NAME}' on Flutter's $FLUTTER_VERSION channel =="
pushd "${PROJECT_NAME}"
localSdkPath=$(getFlutterPath)
if [ -z "$localSdkPath" ]
then
echo "Failed to find Flutter SDK for '${PROJECT_NAME}'."
exit 1
fi
# Run the analyzer to find any static analysis issues.
../flutter/bin/flutter analyze
"${localSdkPath}/bin/flutter" analyze
# Run the formatter on all the dart files to make sure everything's linted.
../flutter/bin/flutter format -n --set-exit-if-changed .
"${localSdkPath}/bin/flutter" format -n --set-exit-if-changed .
# Run the actual tests.
../flutter/bin/flutter test
"${localSdkPath}/bin/flutter" test
popd
done

Loading…
Cancel
Save