-
Notifications
You must be signed in to change notification settings - Fork 6k
Auto select Observatory port on Android and iOS simulators #2515
Auto select Observatory port on Android and iOS simulators #2515
Conversation
sky/engine/core/script/dart_init.cc
Outdated
| 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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
|
I suspect this entire CL could be reduced to changing 8181 to 0 in SkySettings.h |
|
@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; |
There was a problem hiding this comment.
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?
|
lgtm |
Auto select Observatory port on Android and iOS simulators
No description provided.