This project is a fastlane plugin. To get started with fastlane-plugin-sentry, add it to your project by running:
fastlane add_plugin sentry
A subset of actions provided by the CLI: https://docs.sentry.io/learn/cli/
auth_token
is the preferred way to authentication method with Sentry. This can be obtained on https://sentry.io/api/.
api_key
still works but will eventually become deprecated. This can be obtained through the settings of your project.
Also note that as of version 1.2.0
you no longer have to provide the required parameters, we will try to fallback to your .sentryclirc
config file if possible.
The following environment variables may be used in place of parameters: SENTRY_API_KEY
, SENTRY_AUTH_TOKEN
, SENTRY_ORG_SLUG
, and SENTRY_PROJECT_SLUG
.
sentry_upload_dsym(
api_key: '...', # Do not use if using auth_token
auth_token: '...', # Do not use if using api_key
org_slug: '...',
project_slug: '...',
symbol_maps: 'path to bcsymbols folder', # use this if you have a bcsymbols folder
dsym_path: './App.dSYM.zip',
info_plist: '...' # optional, sentry-cli tries to find the correct plist by itself
)
The SENTRY_DSYM_PATH
environment variable may be used in place of the dsym_path
parameter.
sentry_create_release(
api_key: '...',
auth_token: '...',
org_slug: '...',
project_slug: '...',
version: '...', # release version to create
app_identifier: '...', # pass in the bundle_identifer of your app
finalize: true # Whether to finalize the release. If not provided or false, the release can be finalized using the sentry_finalize_release action
)
Useful for uploading build artifacts and JS sourcemaps for react-native apps built using fastlane.
sentry_upload_file(
api_key: '...',
auth_token: '...',
org_slug: '...',
project_slug: '...',
version: '...',
app_identifier: '...', # pass in the bundle_identifer of your app
dist: '...', # optional distribution of the release usually the buildnumber
file: 'main.jsbundle' # file to upload
)
sentry_upload_sourcemap(
api_key: '...',
auth_token: '...',
org_slug: '...',
project_slug: '...',
version: '...',
app_identifier: '...', # pass in the bundle_identifer of your app
dist: '...', # optional distribution of the release usually the buildnumber
sourcemap: 'main.jsbundle.map', # sourcemap to upload
rewrite: true
)
sentry_upload_proguard(
api_key: '...', # Do not use if using auth_token
auth_token: '...', # Do not use if using api_key
org_slug: '...',
project_slug: '...',
android_manifest_path: 'path to merged AndroidManifest file' # found in `app/build/intermediates/manifests/full`
mapping_path: 'path to mapping.txt to upload',
)
Useful for telling Sentry which commits are associated with a release.
sentry_set_commits(
version: '...',
app_identifier: '...', # pass in the bundle_identifer of your app
auto: false, # enable completely automated commit management
clear: false, # clear all current commits from the release
commit: '...', # commit spec, see `sentry-cli releases help set-commits` for more information
)
For any other issues and feedback about this plugin, please submit it to this repository.
For some more detailed help with plugins problems, check out the Plugins Troubleshooting doc in the main fastlane
repo.
For more information about how the fastlane
plugin system works, check out the Plugins documentation in the main fastlane
repo.
fastlane
automates building, testing, and releasing your app for beta and app store distributions. To learn more about fastlane
, check out fastlane.tools.