Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit ba2b8ae

Browse files
committed
Ignore google_sign_in_platform_interface on all-plugins-app call.
* Refactor endlessly growing --exclude param value into a string that gets generated for a list of plugin names.
1 parent 18a8450 commit ba2b8ae

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

script/build_all_plugins_app.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ readonly REPO_DIR="$(dirname "$SCRIPT_DIR")"
1010
source "$SCRIPT_DIR/common.sh"
1111
check_changed_packages > /dev/null
1212

13-
(cd "$REPO_DIR" && pub global run flutter_plugin_tools all-plugins-app --exclude instrumentation_adapter,url_launcher_platform_interface)
13+
readonly EXCLUDED_PLUGINS_LIST=(
14+
"instrumentation_adapter"
15+
"url_launcher_platform_interface"
16+
"google_sign_in_platform_interface"
17+
)
18+
# Comma-separated string of the list above
19+
readonly EXCLUDED=$(IFS=, ; echo "${EXCLUDED_PLUGINS_LIST[*]}")
20+
21+
(cd "$REPO_DIR" && pub global run flutter_plugin_tools all-plugins-app --exclude $EXCLUDED)
1422

1523
function error() {
1624
echo "$@" 1>&2

0 commit comments

Comments
 (0)