This project is a fastlane plugin. To get started with fastlane-plugin-datadog, add it to your project by running:
fastlane add_plugin datadog
⚠️ Node.js is required for this plugin. Make sure it is installed and available in your systemPATH.
Datadog plugin helps you uploading dSYM files to Datadog in order to symbolicate crash reports.
If you are sending crashes to Datadog, they will appear without symbol names. You also need to provide dSYM files to symbolicate your crash reports.
When used with download_dsyms action, no need to specify dsym_paths parameter.
This action is a wrapper around datadog-ci npm package, you can look at datadog-ci documentation for more info.
Check out the example Fastfile to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins and bundle exec fastlane test.
You can use DATADOG_API_KEY environment variable instead of api_key parameter in Fastfile as well as the DATADOG_SITE instead of the site parameter.
To validate the paths of dSYM files, you can enable the throw_errors parameter to raise an error if any files are missing.
# upload symbols from...
lane :upload_dsyms do |options|
upload_symbols_to_datadog(
api_key: "datadog-api-key",
dsym_paths: [
"~/Downloads/appdSYMs.zip", # ...a zip file...
"~/some/folder/with/dsym/files/" # ...or from a folder
],
dry_run: options[:dry_run],
throw_errors: options[:throw_errors]
)
end
# download_dsyms action feeds dsym_paths automatically
lane :upload_dsym_with_download_dsyms do |options|
download_dsyms options
upload_symbols_to_datadog(api_key: "datadog-api-key")
end
# Upload to EU site
lane :upload_dsym_with_download_dsyms do |options|
download_dsyms options
upload_symbols_to_datadog(
api_key: "datadog-api-key",
site: 'datadoghq.eu'
)
endTo run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
For more information about how the fastlane plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.