mirror of
https://github.com/flutter/packages.git
synced 2025-06-18 04:33:52 +08:00

Rolls to the latest release of flutter_plugin_tools, updating calls for breaking changes to flags. Other minor changes: - Removes the default set of actions from `tool_runner.sh` since it's never used, and the set of things it runs is a very obsolete subset at this point; it's better to require people to choose specific actions. - Renames some tasks to match recent renaming in flutter/plugins.
19 lines
673 B
Bash
Executable File
19 lines
673 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2013 The Flutter Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
REPO_DIR="$(dirname "$SCRIPT_DIR")"
|
|
|
|
ACTIONS=("$@")
|
|
|
|
BRANCH_NAME="${BRANCH_NAME:-"$(git rev-parse --abbrev-ref HEAD)"}"
|
|
if [[ "${BRANCH_NAME}" == "master" ]]; then
|
|
echo "Running for all packages"
|
|
(cd "$REPO_DIR" && dart pub global run flutter_plugin_tools "${ACTIONS[@]}" $BUILD_SHARDING)
|
|
else
|
|
(cd "$REPO_DIR" && dart pub global run flutter_plugin_tools "${ACTIONS[@]}" --run-on-changed-packages $BUILD_SHARDING)
|
|
fi
|