mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.4 KiB
72 lines
2.4 KiB
5 years ago
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
echo "Pre-caching ios artifacts, such as the Flutter.framework"
|
||
4 years ago
|
flutter precache --no-web --no-linux --no-windows --no-fuchsia --no-android --no-macos
|
||
5 years ago
|
|
||
|
echo "Fetching dependencies and building 'flutter_module'."
|
||
|
pushd add_to_app/flutter_module
|
||
4 years ago
|
flutter packages get
|
||
|
flutter build ios-framework --xcframework --output="$(pwd)/../ios_using_prebuilt_module/Flutter"
|
||
5 years ago
|
popd
|
||
|
|
||
|
echo "Fetching dependencies for 'flutter_module_using_plugin'."
|
||
|
pushd add_to_app/flutter_module_using_plugin
|
||
4 years ago
|
flutter packages get
|
||
5 years ago
|
popd
|
||
|
|
||
|
|
||
|
echo "== Testing 'add_to_app/ios_fullscreen' on Flutter's $FLUTTER_VERSION channel =="
|
||
|
pushd "add_to_app/ios_fullscreen"
|
||
|
|
||
|
pod install
|
||
|
|
||
|
xcodebuild -workspace "IOSFullScreen.xcworkspace" \
|
||
|
-scheme "IOSFullScreen" 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 "IOSFullScreen.xcworkspace" \
|
||
|
-scheme "IOSFullScreen" 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 "== Testing 'add_to_app/ios_using_plugin' on Flutter's $FLUTTER_VERSION channel =="
|
||
|
pushd "add_to_app/ios_using_plugin"
|
||
|
|
||
|
pod install
|
||
|
|
||
|
xcodebuild -workspace "IOSUsingPlugin.xcworkspace" \
|
||
|
-scheme "IOSUsingPlugin" 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 "IOSUsingPlugin.xcworkspace" \
|
||
|
-scheme "IOSUsingPlugin" 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 "== Testing 'add_to_app/ios_using_prebuilt_module' on Flutter's $FLUTTER_VERSION channel =="
|
||
|
pushd "add_to_app/ios_using_prebuilt_module"
|
||
|
|
||
|
xcodebuild CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO \
|
||
|
CODE_SIGN_IDENTITY=- EXPANDED_CODE_SIGN_IDENTITY=- \
|
||
|
COMPILER_INDEX_STORE_ENABLE=NO CONFIGURATION=Debug | xcpretty
|
||
|
|
||
|
xcodebuild 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 --"
|