1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

restructured the add to app samples (#698)

This commit is contained in:
gaaclarke
2021-02-05 10:20:58 -08:00
committed by GitHub
parent ba8ed34582
commit 323c10558d
239 changed files with 931 additions and 256 deletions

View File

@@ -2,21 +2,26 @@
set -e
echo "Fetching dependencies and building 'flutter_module'."
pushd add_to_app/flutter_module
echo "Fetching dependencies and building 'prebuilt_module/flutter_module/'."
pushd add_to_app/prebuilt_module/flutter_module/
flutter packages get
flutter build aar
popd
echo "Fetching dependencies for 'flutter_module_using_plugin'."
pushd add_to_app/flutter_module_using_plugin
echo "Fetching dependencies for 'plugin/flutter_module_using_plugin'."
pushd add_to_app/plugin/flutter_module_using_plugin
flutter packages get
popd
echo "Fetching dependencies for 'fullscreen/'."
pushd add_to_app/fullscreen/flutter_module
flutter packages get
popd
declare -ar ANDROID_PROJECT_NAMES=(
"add_to_app/android_fullscreen" \
"add_to_app/android_using_plugin" \
"add_to_app/android_using_prebuilt_module" \
"add_to_app/fullscreen/android_fullscreen" \
"add_to_app/plugin/android_using_plugin" \
"add_to_app/prebuilt_module/android_using_prebuilt_module" \
)
for PROJECT_NAME in "${ANDROID_PROJECT_NAMES[@]}"
@@ -44,7 +49,7 @@ fi
# eventually be rolled out to each Android project and included in the loop
# above.
echo "== Espresso testing 'android_fullscreen' on Flutter's ${FLUTTER_VERSION} channel =="
pushd "add_to_app/android_fullscreen"
pushd "add_to_app/fullscreen/android_fullscreen"
./gradlew app:assembleAndroidTest
./gradlew app:assembleDebug -Ptarget=../flutter_module/test_driver/example.dart
gcloud auth activate-service-account --key-file=../../svc-keyfile.json