File tree 5 files changed +23
-15
lines changed 5 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 14
14
- flutter channel master
15
15
- flutter upgrade
16
16
- git fetch origin master
17
+ submodules_script :
18
+ - git submodule init
19
+ - git submodule update
17
20
matrix :
18
21
- name : publishable
19
22
script :
@@ -121,6 +124,9 @@ task:
121
124
- flutter channel master
122
125
- flutter upgrade
123
126
- git fetch origin master
127
+ submodules_script :
128
+ - git submodule init
129
+ - git submodule update
124
130
matrix :
125
131
- name : build-linux+drive-examples
126
132
install_script :
@@ -145,6 +151,9 @@ task:
145
151
- flutter channel master
146
152
- flutter upgrade
147
153
- git fetch origin master
154
+ submodules_script :
155
+ - git submodule init
156
+ - git submodule update
148
157
create_simulator_script :
149
158
- xcrun simctl list
150
159
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-14-3 | xargs xcrun simctl boot
@@ -198,6 +207,9 @@ task:
198
207
- flutter channel master
199
208
- flutter upgrade
200
209
- git fetch origin master
210
+ submodules_script :
211
+ - git submodule init
212
+ - git submodule update
201
213
create_simulator_script :
202
214
- xcrun simctl list
203
215
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-13-3 | xargs xcrun simctl boot
@@ -227,6 +239,9 @@ task:
227
239
- flutter channel master
228
240
- flutter upgrade
229
241
- git fetch origin master
242
+ submodules_script :
243
+ - git submodule init
244
+ - git submodule update
230
245
matrix :
231
246
- name : build_all_plugins_app
232
247
script :
Original file line number Diff line number Diff line change
1
+ [submodule "script/plugin_tools "]
2
+ path = script/plugin_tools
3
+ url = https://github.com/flutter/plugin_tools.git
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ source "$SCRIPT_DIR/common.sh"
12
12
13
13
function check_publish() {
14
14
local failures=()
15
- pub_command global activate flutter_plugin_tools
16
- for dir in $( pub_command global run flutter_plugin_tools list --plugins=" $1 " ) ; do
15
+ for dir in $( plugin_tools list --plugins=" $1 " ) ; do
17
16
local package_name=$( basename " $dir " )
18
17
19
18
echo " Checking that $package_name can be published."
Original file line number Diff line number Diff line change @@ -46,18 +46,8 @@ function check_changed_packages() {
46
46
return 0
47
47
}
48
48
49
- # Normalizes the call to the pub command.
50
- function pub_command() {
51
- if [ " $( expr substr $( uname -s) 1 5) " == " MINGW" ]; then
52
- pub.bat " $@ "
53
- else
54
- pub " $@ "
55
- fi
56
- }
57
-
58
- # Activates the Flutter plugin tool to ensures that the plugin tools dependencies
59
- # are resolved using the current Dart SDK.
60
- # Finally, runs the tool with the parameters.
49
+ # Runs the plugin tools from the plugin_tools git submodule.
61
50
function plugin_tools() {
62
- pub_command global activate flutter_plugin_tools && pub_command global run flutter_plugin_tools " $@ "
51
+ (pushd " $REPO_DIR /script/plugin_tools" && dart pub get && popd) > /dev/null
52
+ dart run " $REPO_DIR /script/plugin_tools/lib/src/main.dart" " $@ "
63
53
}
You can’t perform that action at this time.
0 commit comments