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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user