-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #10867 Differential Revision: D4167203 Pulled By: cpojer fbshipit-source-id: c5ac07f81feeeea00ee0e8b059b46ef0d258a1a6
- Loading branch information
1 parent
39cf29c
commit 2a2d3c6
Showing
2 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters