react-native/scripts
Kevin Cooper 0681887347 Add FORCE/SKIP_BUNDLING flags for iOS builds
Summary:
*See discussion below for updated motivation.*

Anything running in Debug should use the packager anyway; no need to bundle. This saves a **huge amount of time** during development when testing things like push notifications that require a real device.

The code being modified was originally moved here in 9ae3714f4b to make sure bundles are always created in `Release`, but the change can be applied to real devices, too. Ideally there should be very little difference in how a simulator is treated compared to a physical device.

Run a Debug build in Xcode targeting a physical device before and after this commit.

You can use the `FORCE_BUNDLING` and `SKIP_BUNDLING` flags to manually change the default behavior. For example, under **Build Phases** > **Bundle React Native code and images**:

```bash
export SKIP_BUNDLING=true
../node_modules/react-native/packager/react-native-xcode.sh
```
Closes https://github.com/facebook/react-native/pull/14731

Differential Revision: D5444352

Pulled By: javache

fbshipit-source-id: 68324fc0be7976e106fe0f9b31d763afd2b460a9
2017-07-18 11:45:47 -07:00
..
android-e2e-test.js Run eslint on all js files 2017-07-12 14:09:53 -07:00
bump-oss-version.js shelljs/global -> shelljs 2017-07-12 16:08:22 -07:00
circle-ci-android-setup.sh Updated extra-android-m2repository to get android support v4 23.4.0 2016-12-29 05:43:31 -08:00
ios-configure-glog.sh Removing test-driver symlink in ios third party install script 2017-06-21 07:45:37 -07:00
ios-install-third-party.sh Add some debug logging if tar fails 2017-06-15 13:05:05 -07:00
launchPackager.bat Move packager launcher scripts outside of `packager/` 2017-05-23 16:17:09 -07:00
launchPackager.command Move packager launcher scripts outside of `packager/` 2017-05-23 16:17:09 -07:00
objc-test-ios.sh Fix Travis podspec CI for Cxx bridge 2017-07-07 02:32:07 -07:00
objc-test-tvos.sh Fix Travis podspec CI for Cxx bridge 2017-07-07 02:32:07 -07:00
objc-test.sh Install watchman on Travis 2017-07-15 17:15:43 -07:00
packager.sh Fix `scripts/packager.sh` for RNTester 2017-05-25 09:46:23 -07:00
process-podspecs.sh Fix Travis podspec CI for Cxx bridge 2017-07-07 02:32:07 -07:00
publish-npm.js Circle CI releases now work with Java 8 2016-10-28 07:58:52 -07:00
react-native-xcode.sh Add FORCE/SKIP_BUNDLING flags for iOS builds 2017-07-18 11:45:47 -07:00
run-android-ci-instrumentation-tests.js Remove silly exit 2017-07-12 23:37:27 -07:00
run-android-emulator.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
run-android-local-integration-tests.sh Skip flaky ScrollView tests 2017-03-13 13:30:31 -07:00
run-android-local-unit-tests.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
run-ci-e2e-tests.js Add --maxWorkers flag and allow transformers to run in-band. 2017-06-13 09:16:03 -07:00
run-instrumentation-tests-via-adb-shell.sh Stabilized TestIdTestApp integration test 2016-05-26 13:43:29 -07:00
sync-css-layout.sh Rename directories 2016-12-07 05:14:12 -08:00
test-manual-e2e.sh Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
try-n-times.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
validate-android-device-env.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
validate-android-sdk.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
validate-android-test-env.sh Add OSS website test, clean up test names, remove website dependency on sass 2017-03-30 15:30:41 -07:00