-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Rename DeveloperSettings.SourceBundlePath -> SourceBundleName #4608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
You'll need to run "yarn change” to generate a change file for CI to pass. |
|
@NickGerleman thanks! |
| stackFrameUri.append(devSettings.SourceBundleHost.empty() ? "localhost" : devSettings.SourceBundleHost); | ||
| stackFrameUri.append(":"); | ||
| stackFrameUri.append(devSettings.SourceBundlePath.empty() ? "8081" : devSettings.SourceBundlePort); | ||
| stackFrameUri.append(devSettings.SourceBundlePort.empty() ? "8081" : devSettings.SourceBundlePort); |
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.
SourceBundlePort [](start = 43, length = 16)
good catch
| std::string SourceBundlePath; // {PATH} | ||
| std::string SourceBundleExtension; // {EXTENSION} | ||
| std::string SourceBundleHost; // Host domain (without port) for the bundler server. Default: "localhost". | ||
| std::string SourceBundlePort; // Host port for the bundler server. Default: "8081". |
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.
std::string SourceBundlePort [](start = 0, length = 30)
why not just store this as a ushort?
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.
Eventually all these stuff will be assembled to a URL for debug that's then passed to React Native as a std::string. I think storing ushort might not be worth the trouble of itoa?
vmoroz
left a comment
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.
![]()
|
Hello @statm! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
…oft#4608) * Rename DeveloperSettings.SourceBundlePath -> SourceBundleName * Change files * clang format
When using web debugging and/or live reload, source bundle is obtained from the packager.
The source url for the bundle is
http://{HOST}:{PORT}/{NAME}{EXTENSION}?platform={PLATFORM}where:Currently, the
NAMEfield is namedSourceBundlePath, which incorrectly implies file path. This CR renames it toSourceBundleName.(There seems to be a typo in
RedBox.cpp. Also fixed that.)Microsoft Reviewers: Open in CodeFlow