Uh oh!
There was an error while loading. Please reload this page.
Conversation
amasad
commented
Apr 1, 2015
@frantic can you take a look? |
brentvatne
commented
May 11, 2015
|
frantic
commented
May 14, 2015
@tobyhughes - if you are still interested in working on that, please consider @brentvatne's suggestions about code style and docs. Potentially (in separate PR) we could also provide a script that at build time writes laptop's IP address into Info.plist to make everything "just work". |
ghost
commented
May 14, 2015
Will do :) I'll update the PR tonight. |
frantic
commented
May 15, 2015
Just looked at the codebase, and seems like there are few more places where the URL is hardcoded. Would be nice to change those refs too:
You can also extract this logic into some util function to not have to do this manually in different places, something like |
ide
commented
May 15, 2015
Could you generalize this so it's programmatically configurable and reads from the Info.plist by default but doesn't require it? Ex: |
sahrens
commented
May 16, 2015
cc @nicklockwood - were you planning on adding this to the dev menu? would be nice to move what we have internally to OSS with the bonjour stuff and app link support (rn://ip:X.X.X.X) |
jtremback
commented
May 29, 2015
Is there any way I can help with this? I've got to debug on device because my app uses the camera, and this stuff is a pain. |
frantic
commented
May 29, 2015
I'm getting this in shortly :) |
nicklockwood
commented
May 29, 2015
Yeah, this isn't the right right way to handle URLs in iOS. You should probably do something like: Although that also isn't completely bulletproof. Probably worth writing some unit tests with various combinations of missing or redundant prefixes and suffixes. It may be worth using |
frantic
commented
Jun 1, 2015
@nicklockwood has a great point |
brentvatne
commented
Jun 1, 2015
@tobyhughes - any interest in updating this or can we close? |
* Align some more of the publish/pr logic on android builds * minor fix Co-authored-by: Andrew Coates <acoates-ms@noreply.github.com>
Add an option to add a
ReactServerkey to info.plist that specifies a location to a remote server running the packager. This allows you to easily change the location of the packager for on-device debugging without having to root around in various parts of the code, namely AppDelegate.m and RCTWebSocketExecutor.m (if you want debugging).