A framework for building native applications using React
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
S
Sandro Machado committed
2a2d3c6e5a54c553a5c8a9932d8204463e7bbb49
Parent: 39cf29c
Committed by Facebook Github Bot <facebook-github-bot-bot@fb.com>
on 11/14/2016, 2:58:29 AM