Class: Fastlane::Actions::UninowSentryUploadDsymAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::UninowSentryUploadDsymAction
- Defined in:
- lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_dsym.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
83 84 85 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_dsym.rb', line 83 def self. ["joshdholtz", "HazAT"] end |
.available_options ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_dsym.rb', line 46 def self. Helper::UninowSentryConfig.common_api_config_items + [ FastlaneCore::ConfigItem.new(key: :dsym_path, env_name: "SENTRY_DSYM_PATH", description: "Path to your symbols file. For iOS and Mac provide path to app.dSYM.zip", default_value: Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH], optional: true, verify_block: proc do |value| UI.user_error! "Could not find Path to your symbols file at path '#{value}'" unless File.exist?(value) end), FastlaneCore::ConfigItem.new(key: :dsym_paths, env_name: "SENTRY_DSYM_PATHS", description: "Path to an array of your symbols file. For iOS and Mac provide path to app.dSYM.zip", default_value: Actions.lane_context[SharedValues::DSYM_PATHS], is_string: false, optional: true), FastlaneCore::ConfigItem.new(key: :symbol_maps, env_name: "SENTRY_SYMBOL_MAPS", description: "Optional path to bcsymbolmap files which are used to resolve hidden symbols in the actual dsym files. This requires the dsymutil tool to be available", optional: true, verify_block: proc do |value| UI.user_error! "Could not find bcsymbolmap at path '#{value}'" unless File.exist?(value) end), FastlaneCore::ConfigItem.new(key: :info_plist, env_name: "SENTRY_INFO_PLIST", description: "Optional path to Info.plist to add version information when uploading debug symbols", optional: true, verify_block: proc do |value| UI.user_error! "Could not find Info.plist at path '#{value}'" unless File.exist?(value) end) ] end |
.description ⇒ Object
34 35 36 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_dsym.rb', line 34 def self.description "Upload dSYM symbolication files to Sentry" end |
.details ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_dsym.rb', line 38 def self.details [ "This action allows you to upload symbolication files to Sentry.", "It's extra useful if you use it to download the latest dSYM files from Apple when you", "use Bitcode" ].join(" ") end |
.is_supported?(platform) ⇒ Boolean
87 88 89 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_dsym.rb', line 87 def self.is_supported?(platform) platform == :ios end |
.return_value ⇒ Object
79 80 81 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_dsym.rb', line 79 def self.return_value nil end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_dsym.rb', line 4 def self.run(params) Helper::UninowSentryHelper.check_sentry_cli! Helper::UninowSentryConfig.parse_api_params(params) # Params - dSYM dsym_path = params[:dsym_path] dsym_paths = params[:dsym_paths] || [] # Verify dsym(s) dsym_paths += [dsym_path] unless dsym_path.nil? dsym_paths = dsym_paths.map { |path| File.absolute_path(path) } dsym_paths.each do |path| UI.user_error!("dSYM does not exist at path: #{path}") unless File.exist? path end command = ["sentry-cli", "upload-dsym"] command.push("--symbol-maps") unless params[:symbol_maps].nil? command.push(params[:symbol_maps]) unless params[:symbol_maps].nil? command.push("--info-plist") unless params[:info_plist].nil? command.push(params[:info_plist]) unless params[:info_plist].nil? command += dsym_paths Helper::UninowSentryHelper.call_sentry_cli(command) UI.success("Successfully uploaded dSYMs!") end |