Precache iOS artifacts (#49010)

This commit is contained in:
Jenn Magder 2020-01-17 15:28:01 -08:00 committed by Flutter GitHub Bot
parent 1a061dd8e5
commit 9301a86a86

View File

@ -19,7 +19,20 @@ Future<void> main() async {
);
await inDirectory(platformViewDirectory, () async {
await flutter('pub', options: <String>['get']);
// Pre-cache the iOS artifacts; this may be the first test run on this machine.
await flutter(
'precache',
options: <String>[
'--no-android',
'--no-fuchsia',
'--no-linux',
'--no-macos',
'--no-web',
'--no-windows',
],
);
});
final Directory iosDirectory = dir(
'$platformViewDirectoryPath/ios',
);