@@ -5,13 +5,22 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
55readonly REPO_DIR=" $( dirname " $SCRIPT_DIR " ) "
66
77source " $SCRIPT_DIR /common.sh"
8+ source " $SCRIPT_DIR /nnbd_plugins.sh"
89
910if [ " $( expr substr $( uname -s) 1 5) " == " MINGW" ]; then
1011 PUB=pub.bat
1112else
1213 PUB=pub
1314fi
1415
16+ # Plugins that are excluded from this task.
17+ ALL_EXCLUDED=(" " )
18+ # Exclude nnbd plugins from stable.
19+ if [[ " $CHANNEL " -eq " stable" ]]; then
20+ ALL_EXCLUDED=($EXCLUDED_PLUGINS_FROM_STABLE )
21+ echo " Excluding the following plugins: $ALL_EXCLUDED "
22+ fi
23+
1524# Plugins that deliberately use their own analysis_options.yaml.
1625#
1726# This list should only be deleted from, never added to. This only exists
@@ -39,18 +48,18 @@ PLUGIN_SHARDING=($PLUGIN_SHARDING)
3948
4049if [[ " ${BRANCH_NAME} " == " master" ]]; then
4150 echo " Running for all packages"
42- (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools " ${ACTIONS[@]} " ${PLUGIN_SHARDING[@]} )
51+ (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools " ${ACTIONS[@]} " --exclude= " $ALL_EXCLUDED " ${PLUGIN_SHARDING[@]} )
4352else
4453 # Sets CHANGED_PACKAGES
4554 check_changed_packages
4655
4756 if [[ " $CHANGED_PACKAGES " == " " ]]; then
4857 echo " No changes detected in packages."
4958 echo " Running for all packages"
50- (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools " ${ACTIONS[@]} " ${PLUGIN_SHARDING[@]} )
59+ (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools " ${ACTIONS[@]} " --exclude= " $ALL_EXCLUDED " ${PLUGIN_SHARDING[@]} )
5160 else
5261 echo running " ${ACTIONS[@]} "
53- (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools " ${ACTIONS[@]} " --plugins=" $CHANGED_PACKAGES " ${PLUGIN_SHARDING[@]} )
62+ (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools " ${ACTIONS[@]} " --plugins=" $CHANGED_PACKAGES " --exclude= " $ALL_EXCLUDED " ${PLUGIN_SHARDING[@]} )
5463 echo " Running version check for changed packages"
5564 (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools version-check --base_sha=" $( get_branch_base_sha) " )
5665 fi
0 commit comments