Skip to content

Commit

Permalink
[all_plugins] Compile all plugins together (firebase#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
bparrishMines authored Jul 10, 2019
1 parent 14ec72b commit 4992803
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
.dart_tool/
pubspec.lock

examples/all_plugins/pubspec.yaml

Podfile
Podfile.lock
Pods/
Expand Down
5 changes: 3 additions & 2 deletions script/build_all_plugins_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
# sure all first party plugins can be compiled together.

# So that users can run this script from anywhere and it will work as expected.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null && pwd)"
REPO_DIR="$(dirname "$SCRIPT_DIR")"

source "$SCRIPT_DIR/common.sh"
check_changed_packages > /dev/null

cd $REPO_DIR/examples/all_plugins
flutter clean > /dev/null
(cd "$REPO_DIR" && pub global run flutter_plugin_tools gen-pubspec --exclude firebase_core,firebase_ml_vision)

function error() {
echo "$@" 1>&2
Expand All @@ -20,7 +21,7 @@ function error() {
failures=0

for version in "debug" "release"; do
(flutter build $@ --$version) > /dev/null
(flutter build $@ --$version > /dev/null)

if [ $? -eq 0 ]; then
echo "Successfully built $version all_plugins app."
Expand Down

0 comments on commit 4992803

Please sign in to comment.