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

Added sample code for multiple flutters on iOS (#670)

This commit is contained in:
gaaclarke
2021-02-08 13:01:54 -08:00
committed by GitHub
parent 241e2c1b26
commit 2825131b34
31 changed files with 1588 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ declare -ar PROJECT_NAMES=(
"add_to_app/prebuilt_module/flutter_module" \
"add_to_app/plugin/flutter_module_using_plugin" \
"add_to_app/books/flutter_module_books" \
"add_to_app/multiple_flutters/multiple_flutters_module" \
"animations" \
# Tracking issue: https://github.com/flutter/samples/issues/652
# "flutter_maps_firestore" \
@@ -57,7 +58,10 @@ do
flutter format -n --set-exit-if-changed .
# Run the actual tests.
flutter test
if [ -d "test"]
then
flutter test
fi
popd
done

View File

@@ -21,6 +21,11 @@ pushd add_to_app/fullscreen/flutter_module
flutter packages get
popd
echo "Fetching dependencies and building 'multiple_flutters/multiple_flutters_module'."
pushd add_to_app/multiple_flutters/multiple_flutters_module
flutter packages get
popd
echo "== Testing 'add_to_app/fullscreen/ios_fullscreen' on Flutter's $FLUTTER_VERSION channel =="
pushd "add_to_app/fullscreen/ios_fullscreen"
@@ -71,5 +76,23 @@ COMPILER_INDEX_STORE_ENABLE=NO CONFIGURATION=Release \
popd
echo "== Testing 'add_to_app/multiple_flutters/multiple_flutters_ios' on Flutter's $FLUTTER_VERSION channel =="
pushd "add_to_app/multiple_flutters/multiple_flutters_ios"
pod install
xcodebuild -workspace "MultipleFluttersIos.xcworkspace" \
-scheme "MultipleFluttersIos" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY=- EXPANDED_CODE_SIGN_IDENTITY=- \
COMPILER_INDEX_STORE_ENABLE=NO CONFIGURATION=Debug | xcpretty
xcodebuild -workspace "MultipleFluttersIos.xcworkspace" \
-scheme "MultipleFluttersIos" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY=- EXPANDED_CODE_SIGN_IDENTITY=- \
COMPILER_INDEX_STORE_ENABLE=NO CONFIGURATION=Release \
-destination generic/platform=iOS | xcpretty
popd
echo "-- Success --"