-
Notifications
You must be signed in to change notification settings - Fork 28
Build Command
Shreyash Saitwal edited this page Mar 12, 2021
·
2 revisions
The build command is what you use to compile your extensions created using Rush. You can invoke the build command by running rush build <flag>, where <flag> could be any of the supported flags. The produced AIX file can be located inside the ./out directory.
| Flag | Description |
|---|---|
-r, --release
|
This flag marks the current build as a release build. When a build is marked as a release build, Rush performs an extra set of optimization, producing a smaller AIX file. It also increases the version number if it's set to auto in the metadata file.false by default. |
-o, --[no-]optimize
|
This flag indicates whether or not to optimize this build.true when --release flag is used, otherwise false by default. |
-s, --support-lib
|
With this flag, you can produce two different versions of your extension, one that uses the AndroidX libraries and the other that uses Android support libraries.false by default. |