Skip to content

Conversation

@cbracken
Copy link
Member

Rather than pre-compute Xcode install path, version, and EULA status,
compute and cache on demand.

Rather than pre-compute Xcode install path, version, and EULA status,
compute and cache on demand.
@cbracken cbracken requested a review from tvolkert June 23, 2017 21:45
@cbracken
Copy link
Member Author

Pre-factoring before making these calls async.

bool get isInstalled => _isInstalled;
bool get isInstalled {
if (xcodeSelectPath != null && xcodeSelectPath.isNotEmpty)
return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be true, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops - tried to get clever, realised it wouldn't work and missed a revert. Once this is in, asyncified and the process invocations extracted, we'll be able to easily add tests for these cases.

if (!xcodeVersionRegex.hasMatch(xcodeVersionText))
return false;
if (!eulaSigned)
return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't match the previous logic

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@cbracken cbracken merged commit bb8e2a7 into flutter:master Jun 23, 2017
@cbracken cbracken deleted the lazy-xcode branch June 23, 2017 22:56
cbracken added a commit to cbracken/flutter that referenced this pull request Jun 23, 2017
This reverts commit bb8e2a7.

Triggers a doctor failure on the Mac chromebots.
cbracken added a commit that referenced this pull request Jun 23, 2017
This reverts commit bb8e2a7.

Triggers a doctor failure on the Mac chromebots.
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jul 1, 2017
Rather than pre-compute Xcode install path, version, and EULA status,
compute and cache on demand.
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jul 1, 2017
…lutter#10951)

This reverts commit bb8e2a7.

Triggers a doctor failure on the Mac chromebots.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants