Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.ReactNative
Commits
7248be59
Unverified
Commit
7248be59
authored
Jan 30, 2020
by
Diego Mello
Committed by
GitHub
Jan 30, 2020
Browse files
[CHORE] Add Start Packager script (#1639)
parent
d2df4c6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ios/RocketChatRN.xcodeproj/project.pbxproj
View file @
7248be59
...
...
@@ -278,6 +278,7 @@
buildConfigurationList
=
13B07F931A680F5B00A75B9A
/* Build configuration list for PBXNativeTarget "RocketChatRN" */
;
buildPhases
=
(
FB4AC4FF76ACF097F2431C74
/* [CP] Check Pods Manifest.lock */
,
7AA5C63E23E30D110005C4A7
/* Start Packager */
,
13B07F871A680F5B00A75B9A
/* Sources */
,
13B07F8C1A680F5B00A75B9A
/* Frameworks */
,
13B07F8E1A680F5B00A75B9A
/* Resources */
,
...
...
@@ -520,6 +521,24 @@
shellPath
=
/bin/sh
;
shellScript
=
"export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"
;
};
7AA5C63E23E30D110005C4A7
/* Start Packager */
=
{
isa
=
PBXShellScriptBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
);
inputFileListPaths
=
(
);
inputPaths
=
(
);
name
=
"Start Packager"
;
outputFileListPaths
=
(
);
outputPaths
=
(
);
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellScript
=
"export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"
;
};
9558AC195A3506BB8472CE99
/* [CP] Embed Pods Frameworks */
=
{
isa
=
PBXShellScriptBuildPhase
;
buildActionMask
=
2147483647
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment