2a2d3c6e5a
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 |
||
---|---|---|
.. | ||
adb.js | ||
runAndroid.js |