Change xcodebuild to be a "slow operation" (#61518)

The Xcode build almost always takes longer than 2 seconds. With the
operation classified as a "fast operation", the Flutter tool will
warn the user that the build is "taking an unexpectedly long time".
This updates the operation to be a "slow operation", which will only
warn the user if it takes 2+ minutes.
This commit is contained in:
Todd Volkert 2020-07-15 11:53:26 -07:00 committed by GitHub
parent 5e1635b186
commit d009172fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,7 +320,7 @@ Future<XcodeBuildResult> buildXcodeProject({
buildCommands.addAll(environmentVariablesAsXcodeBuildSettings(globals.platform));
final Stopwatch sw = Stopwatch()..start();
initialBuildStatus = globals.logger.startProgress('Running Xcode build...', timeout: timeoutConfiguration.fastOperation);
initialBuildStatus = globals.logger.startProgress('Running Xcode build...', timeout: timeoutConfiguration.slowOperation);
final RunResult buildResult = await _runBuildWithRetries(buildCommands, app);