Build your React Native app faster than ever with Nitro
Description
This step builds your React Native app for Android using Nitro. Get your API key on our website.
Add this step directly to your workflow in the Bitrise Workflow Editor.
You can also run this step directly with Bitrise CLI.
Inputs
Key | Description | Flags | Default |
---|---|---|---|
api_key |
The API key required by Nitro. It is recommended to set a $NITRO_API_KEY as a Bitrise secret. | sensitive | |
root_directory |
The directory within your project, in which your code is located. Leave this field empty if your code is not located in a subdirectory | ./ |
|
flavor |
Set product flavor for Gradle build variant | ||
version_name |
The version name for the app | ||
version_code |
The version code for the app | ||
disable_version_name_from_package_json |
By default will get the 'version' field from package.json and set the version name | no |
|
disable_version_code_auto_generation |
By default will generate a timestamp based number and set the version code | no |
|
keystore_url |
Keystore url (defaults to $BITRISEIO_ANDROID_KEYSTORE_URL if present) | ||
keystore_password |
Keystore password (defaults to $BITRISEIO_ANDROID_KEYSTORE_PASSWORD if present) | sensitive | |
keystore_key_alias |
Keystore alias (defaults to $BITRISEIO_ANDROID_KEYSTORE_ALIAS if present) | ||
keystore_key_password |
Keystore key password (defaults to $BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD if present) | sensitive | |
cache_provider |
Choose the provider where cache artifacts will be persisted: - fs : File system - s3 : Amazon - Simple Storage Service |
s3 |
|
disable_cache |
When setting this option to yes build cache optimizations won't be performed. (defaults to $NITRO_DISABLE_CACHE if present) |
||
cache_env_var_lookup_keys |
A list of | separated values with env variable keys to lookup to determine whether the build should be cached or not |
||
cache_file_lookup_paths |
A list of | separated value paths (relative to the root of the repo or absolute) to lookup in order to determine whether the build should be cached or not |
||
disable_metro_cache |
Setting this field to yes will disable the React Native Metro cache feature. (defaults to $NITRO_DISABLE_METRO_CACHE if present) | ||
aws_s3_access_key_id |
AWS access key ID for S3 bucket build caching. (defaults to $NITRO_AWS_S3_ACCESS_KEY_ID if present) | ||
aws_s3_secret_access_key |
AWS secret access key for S3 bucket build caching. (defaults to $NITRO_AWS_S3_SECRET_ACCESS_KEY if present) | ||
aws_s3_region |
AWS region where S3 bucket for build caching is located. (defaults to $NITRO_AWS_S3_REGION if present) | ||
aws_s3_bucket |
AWS bucket name for S3 bucket build caching. (defaults to $NITRO_AWS_S3_BUCKET if present) | ||
pre_install_command |
Run command prior to install project dependencies (e.g. rm -rf ./some-folder ) |
||
pre_build_command |
Run command prior to start building the app (e.g. yarn tsc && yarn test ) |
||
post_build_command |
Run command once build successfully finished (e.g. yarn publish ) |
||
detox_configuration |
Select a device configuration from your defined configurations. | ||
output_directory |
The path to the directory where to place all of Nitro's output files. (defaults to $BITRISE_DEPLOY_DIR) | ||
entry_file |
The entry file for bundle generation. (defaults to $ENTRY_FILE if present) | ||
verbose |
Enable verbose logs | no |
|
debug |
Enable step debugging | no |
|
fail_safe |
Runing the app in this mode allows you to prevent the build to fail but you can check the status in further steps. (defaults to $NITRO_FAIL_SAFE if present) |
Outputs
Environment Variable | Description |
---|---|
NITRO_BUILD_STATUS |
The status of the latest build (success / failed) |
NITRO_OUTPUT_DIR |
The path to the directory where to place all of Nitro's output files |
NITRO_LOGS_PATH |
The full path to access the build log |
NITRO_SUMMARY_PATH |
The full path to access the build summary report |
NITRO_APP_PATH |
The full path to access the Android package (.apk) |
NITRO_DEPLOY_PATH |
The full path to access the Android package (.apk) |
We welcome pull requests and issues against this repository.
For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.
Learn more about developing steps: