Sentry Fastlane Plugin
Getting Started
This project is a fastlane plugin. To get started with fastlane-plugin-sentry, add it to your project by running:
fastlane add_plugin sentry
Sentry Actions
A subset of actions provided by the CLI: https://docs.sentry.io/learn/cli/
Authentication & Configuration
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
.
Uploading Symbolication Files
sentry_upload_dsym(
api_key: '...',
auth_token: '...',
org_slug: '...',
project_slug: '...',
symbol_maps: 'path to bcsymbols folder'
dsym_path: './App.dSYM.zip',
info_plist: '...'
)
The SENTRY_DSYM_PATH
environment variable may be used in place of the dsym_path
parameter.
Creating & Finalizing Releases
sentry_create_release(
api_key: '...',
auth_token: '...',
org_slug: '...',
project_slug: '...',
version: '...',
app_identifier: '...',
finalize: true
)
Uploading Files & Sourcemaps
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: '...',
dist: '...',
file: 'main.jsbundle'
)
sentry_upload_sourcemap(
api_key: '...',
auth_token: '...',
org_slug: '...',
project_slug: '...',
version: '...',
app_identifier: '...',
dist: '...',
sourcemap: 'main.jsbundle.map',
rewrite: true
)
Uploading Proguard Mapping File
sentry_upload_proguard(
api_key: '...',
auth_token: '...',
org_slug: '...',
project_slug: '...',
android_manifest_path: 'path to merged AndroidManifest file'
mapping_path: 'path to mapping.txt to upload',
)
Associating commits
Useful for telling Sentry which commits are associated with a release.
sentry_set_commits(
version: '...',
app_identifier: '...',
auto: false,
clear: false,
commit: '...',
)
Issues and Feedback
For any other issues and feedback about this plugin, please submit it to this repository.
Troubleshooting
For some more detailed help with plugins problems, check out the Plugins Troubleshooting doc in the main fastlane
repo.
Using fastlane
Plugins
For more information about how the fastlane
plugin system works, check out the Plugins documentation in the main fastlane
repo.
About fastlane
fastlane
automates building, testing, and releasing your app for beta and app store distributions. To learn more about fastlane
, check out fastlane.tools.