class Fastlane::Actions::UninowSentryUploadProguardAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_proguard.rb, line 43 def self.available_options Helper::UninowSentryConfig.common_api_config_items + [ FastlaneCore::ConfigItem.new(key: :mapping_path, env_name: "ANDROID_MAPPING_PATH", description: "Path to your proguard mapping.txt file", optional: false, verify_block: proc do |value| UI.user_error! "Could not find your mapping file at path '#{value}'" unless File.exist?(value) end), FastlaneCore::ConfigItem.new(key: :android_manifest_path, env_name: "ANDROID_MANIFEST_PATH", description: "Path to your merged AndroidManifest file. This is usually found under `app/build/intermediates/manifests/full`", optional: false, verify_block: proc do |value| UI.user_error! "Could not find your merged AndroidManifest file at path '#{value}'" unless File.exist?(value) end) ] end
description()
click to toggle source
@!group Documentation
# File lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_proguard.rb, line 32 def self.description "Upload mapping to a project on Sentry" end
details()
click to toggle source
# File lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_proguard.rb, line 36 def self.details [ "This action allows you to upload the proguard mapping file to Sentry.", "See https://docs.sentry.io/cli/dif/proguard for more information." ].join(" ") end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_proguard.rb, line 70 def self.is_supported?(platform) platform == :android end
return_value()
click to toggle source
# File lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_proguard.rb, line 62 def self.return_value nil end
run(params)
click to toggle source
# File lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_upload_proguard.rb, line 4 def self.run(params) Helper::UninowSentryHelper.check_sentry_cli! Helper::UninowSentryConfig.parse_api_params(params) # Params - mapping & manifest mapping_path = params[:mapping_path] android_manifest_path = params[:android_manifest_path] # Verify files UI.user_error!("Mapping file does not exist at path: #{mapping_path}") unless File.exist? mapping_path UI.user_error!("AndroidManifest.xml file does not exist at path: #{android_manifest_path}") unless File.exist? android_manifest_path command = [ "sentry-cli", "upload-proguard", "--android-manifest", android_manifest_path, mapping_path ] Helper::UninowSentryHelper.call_sentry_cli(command) UI.success("Successfully uploaded mapping file!") end