@@ -5,13 +5,22 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
5
5
readonly REPO_DIR=" $( dirname " $SCRIPT_DIR " ) "
6
6
7
7
source " $SCRIPT_DIR /common.sh"
8
+ source " $SCRIPT_DIR /nnbd_plugins.sh"
8
9
9
10
if [ " $( expr substr $( uname -s) 1 5) " == " MINGW" ]; then
10
11
PUB=pub.bat
11
12
else
12
13
PUB=pub
13
14
fi
14
15
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
+
15
24
# Plugins that deliberately use their own analysis_options.yaml.
16
25
#
17
26
# This list should only be deleted from, never added to. This only exists
@@ -39,18 +48,18 @@ PLUGIN_SHARDING=($PLUGIN_SHARDING)
39
48
40
49
if [[ " ${BRANCH_NAME} " == " master" ]]; then
41
50
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[@]} )
43
52
else
44
53
# Sets CHANGED_PACKAGES
45
54
check_changed_packages
46
55
47
56
if [[ " $CHANGED_PACKAGES " == " " ]]; then
48
57
echo " No changes detected in packages."
49
58
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[@]} )
51
60
else
52
61
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[@]} )
54
63
echo " Running version check for changed packages"
55
64
(cd " $REPO_DIR " && $PUB global run flutter_plugin_tools version-check --base_sha=" $( get_branch_base_sha) " )
56
65
fi
0 commit comments