Skip to content

Commit 8a1c9b2

Browse files
committed
auto-compile when building for phone
1 parent 928e91e commit 8a1c9b2

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ There is a server that the app hits for data. The data is only stored in memory,
1818

1919
In the `server` directory
2020

21-
* Install nvm and iojs-v2.4.0
21+
* Install nvm and node-4.0.0
2222
* Run it: `npm start`
2323

2424
It has sample data in the `models.js` file. For example, there is a user bleonard (password: "sample") that you can log in as.

ios/Sample.xcodeproj/project.pbxproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@
378378
13B07F8C1A680F5B00A75B9A /* Frameworks */,
379379
13B07F8E1A680F5B00A75B9A /* Resources */,
380380
DF35A678DD70FEB3ABFDEA69 /* Copy Pods Resources */,
381+
D32D268A1BD4AFC8007753B2 /* ShellScript */,
381382
B91827D077A8C198AC93F32E /* Embed Pods Frameworks */,
382383
);
383384
buildRules = (
@@ -597,6 +598,19 @@
597598
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
598599
showEnvVarsInLog = 0;
599600
};
601+
D32D268A1BD4AFC8007753B2 /* ShellScript */ = {
602+
isa = PBXShellScriptBuildPhase;
603+
buildActionMask = 2147483647;
604+
files = (
605+
);
606+
inputPaths = (
607+
);
608+
outputPaths = (
609+
);
610+
runOnlyForDeploymentPostprocessing = 0;
611+
shellPath = /bin/sh;
612+
shellScript = "if [ \"${PLATFORM_NAME}\" != \"iphonesimulator\" ]; then\n source ~/.nvm/nvm.sh\n cd ${PROJECT_DIR}/.. && react-native bundle --minify\nfi";
613+
};
600614
DF35A678DD70FEB3ABFDEA69 /* Copy Pods Resources */ = {
601615
isa = PBXShellScriptBuildPhase;
602616
buildActionMask = 2147483647;

0 commit comments

Comments
 (0)