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

View File

@@ -3,9 +3,10 @@
set -e
declare -ar PROJECT_NAMES=(
"add_to_app/flutter_module" \
"add_to_app/flutter_module_using_plugin" \
"add_to_app/flutter_module_books" \
"add_to_app/fullscreen/flutter_module" \
"add_to_app/prebuilt_module/flutter_module" \
"add_to_app/plugin/flutter_module_using_plugin" \
"add_to_app/books/flutter_module_books" \
"animations" \
# Tracking issue: https://github.com/flutter/samples/issues/652
# "flutter_maps_firestore" \

View File

@@ -3,9 +3,10 @@
set -e
declare -ar PROJECT_NAMES=(
"add_to_app/flutter_module" \
"add_to_app/flutter_module_using_plugin" \
"add_to_app/flutter_module_books" \
"add_to_app/fullscreen/flutter_module" \
"add_to_app/prebuilt_module/flutter_module" \
"add_to_app/plugin/flutter_module_using_plugin" \
"add_to_app/books/flutter_module_books" \
"animations" \
# Tracking issue: https://github.com/flutter/samples/issues/652
# "flutter_maps_firestore" \

View File

@@ -3,9 +3,10 @@
set -e
declare -ar PROJECT_NAMES=(
"add_to_app/flutter_module" \
"add_to_app/flutter_module_using_plugin" \
"add_to_app/flutter_module_books" \
"add_to_app/fullscreen/flutter_module" \
"add_to_app/prebuilt_module/flutter_module" \
"add_to_app/plugin/flutter_module_using_plugin" \
"add_to_app/books/flutter_module_books" \
"animations" \
"flutter_maps_firestore" \
"infinite_list" \

View File

@@ -5,20 +5,24 @@ set -e
echo "Pre-caching ios artifacts, such as the Flutter.framework"
flutter precache --no-web --no-linux --no-windows --no-fuchsia --no-android --no-macos
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 ios-framework --xcframework --output="$(pwd)/../ios_using_prebuilt_module/Flutter"
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 and building 'fullscreen/flutter_module'."
pushd add_to_app/fullscreen/flutter_module
flutter packages get
popd
echo "== Testing 'add_to_app/ios_fullscreen' on Flutter's $FLUTTER_VERSION channel =="
pushd "add_to_app/ios_fullscreen"
echo "== Testing 'add_to_app/fullscreen/ios_fullscreen' on Flutter's $FLUTTER_VERSION channel =="
pushd "add_to_app/fullscreen/ios_fullscreen"
pod install
@@ -35,8 +39,8 @@ COMPILER_INDEX_STORE_ENABLE=NO CONFIGURATION=Release \
popd
echo "== Testing 'add_to_app/ios_using_plugin' on Flutter's $FLUTTER_VERSION channel =="
pushd "add_to_app/ios_using_plugin"
echo "== Testing 'add_to_app/plugin/ios_using_plugin' on Flutter's $FLUTTER_VERSION channel =="
pushd "add_to_app/plugin/ios_using_plugin"
pod install
@@ -53,8 +57,8 @@ COMPILER_INDEX_STORE_ENABLE=NO CONFIGURATION=Release \
popd
echo "== Testing 'add_to_app/ios_using_prebuilt_module' on Flutter's $FLUTTER_VERSION channel =="
pushd "add_to_app/ios_using_prebuilt_module"
echo "== Testing 'add_to_app/prebuilt_module/ios_using_prebuilt_module' on Flutter's $FLUTTER_VERSION channel =="
pushd "add_to_app/prebuilt_module/ios_using_prebuilt_module"
xcodebuild CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY=- EXPANDED_CODE_SIGN_IDENTITY=- \