react-native/local-cli
Sandro Machado 2a2d3c6e5a Add the configuration option to the run-android command
Summary:
Currently, to generate a `Release` build in `Android` it is required to get into the `android` directory and run the `react native bundle`with a lot of options and after that run the `gradle` to assemble or install the application with the build type `Release`.

This PR improves the process adding that feature to the `React Native CLI`.

To generate a release build is only required to use the parameter `--configuration` with the value `Release`.

**Examples**

To generate a release build:
```sh
react-native run-android --configuration release
```

To generate a release build for the product flavors staging:
```sh
react-native run-android --configuration release --flavor staging
```

To generate a debug build:
```sh
react-native run-android
```

To generate a debug build for the product flavors staging:
```sh
react-native run-android --flavor staging
```

This PR also removes the option `--install-debug` from the `react-native run-android` because that is always the default value,
Closes https://github.com/facebook/react-native/pull/10867

Differential Revision: D4167203

Pulled By: cpojer

fbshipit-source-id: c5ac07f81feeeea00ee0e8b059b46ef0d258a1a6
2016-11-13 18:58:29 -08:00
..
__mocks__ Remove fastpath 2016-10-20 00:14:03 -07:00
__tests__ Temporarily disable cli tests 2015-11-12 07:05:01 -08:00
android CLI errors if no package.json is found 2016-10-14 10:58:43 -07:00
bundle Remove prepack bundle functionality 2016-11-07 03:43:37 -08:00
core Fixes react-native link for apps with extra xcode projects in the root folder 2016-10-24 13:13:46 -07:00
dependencies Use native Promises 2016-11-08 12:28:47 -08:00
generate Revert "Add folders to attempt to unblock sync" 2015-10-26 22:48:10 +00:00
generator Add .gitattributes file, treat .pbxproj as binary 2016-11-10 17:58:41 -08:00
generator-android Call SoLoader.init in MainApplication#onCreate 2016-11-03 13:29:09 -07:00
generator-ios Included NativeAnimation module on iOS in the starter project 2016-11-10 00:58:33 -08:00
init Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
install Further RNPM integration 2016-08-22 08:58:37 -07:00
library Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
link Change matching pattern on settings.gradle 2016-11-08 16:28:43 -08:00
logAndroid Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
logIOS Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
runAndroid Add the configuration option to the run-android command 2016-11-13 18:58:29 -08:00
runIOS Add the scheme configuration option to the run-ios command 2016-11-10 09:58:42 -08:00
server Use npm for e2e tests 2016-11-09 09:31:12 -08:00
upgrade Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
util Break out defaults, add flow for Config 2016-10-22 06:13:42 -07:00
.eslintrc Break out defaults, add flow for Config 2016-10-22 06:13:42 -07:00
cli.js Monkey-patch `fs` with graceful-fs before anything else runs 2016-10-14 11:13:54 -07:00
cliEntry.js Break out defaults, add flow for Config 2016-10-22 06:13:42 -07:00
commands.js Break out defaults, add flow for Config 2016-10-22 06:13:42 -07:00
default.config.js Remove platform blacklists 2016-09-23 08:13:46 -07:00
generate-android.js Add license headers to local-cli 2015-10-20 09:55:21 -07:00
generator-utils.js Android package name validator consistent with docs 2016-09-09 04:13:49 -07:00
setup_env.bat Fix comments on .bat file 2015-10-28 21:36:07 -04:00
setup_env.sh Change ulimit to 2048 for non root Mac users 2016-02-06 11:45:37 -08:00
wrong-react-native.js Fix usage of react-native cli inside package.json scripts 2016-04-26 15:42:35 -07:00