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

Conversation

@johnmccutchan
Copy link
Contributor

No description provided.

@johnmccutchan
Copy link
Contributor Author

@abarth

const intptr_t port = settings.observatory_port;
// We auto select the port on Android and iOS simulators.
const intptr_t port =
IsRunningPrecompiledCode() ? settings.observatory_port : 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this ignore the command-line flag to set the observatory port?

Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than ignoring the setting, maybe we should make the default value of the setting zero (i.e., in sky_settings.h).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@eseidelGoogle
Copy link
Contributor

I suspect this entire CL could be reduced to changing 8181 to 0 in SkySettings.h

@johnmccutchan
Copy link
Contributor Author

@eseidelGoogle PTAL. I checked with Chinmay and he is fine with how this will affect the iOS device workflow.

LOG(INFO)
<< "Observatory port specified was malformed. Will default to 8181";
<< "Observatory port specified was malformed. Will default to "
<< settings.observatory_port;
Copy link
Contributor

Choose a reason for hiding this comment

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

This will always be 0, no?

@eseidelGoogle
Copy link
Contributor

lgtm

johnmccutchan added a commit that referenced this pull request Mar 17, 2016
Auto select Observatory port on Android and iOS simulators
@johnmccutchan johnmccutchan merged commit a8ea37b into flutter:master Mar 17, 2016
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