Class: Fastlane::Actions::RollbarProguardUploadAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/rollbar/actions/rollbar_proguard_upload_action.rb

Class Method Summary collapse

Class Method Details

.authorsObject



22
23
24
# File 'lib/fastlane/plugin/rollbar/actions/rollbar_proguard_upload_action.rb', line 22

def self.authors
  ['Evgrafov Denis']
end

.available_optionsObject



35
36
37
38
39
40
41
42
# File 'lib/fastlane/plugin/rollbar/actions/rollbar_proguard_upload_action.rb', line 35

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :api_key, description: 'Rollbar API key', optional: false, type: String),
    FastlaneCore::ConfigItem.new(key: :proguard_path, description: 'Proguard mapping path', optional: false, type: String),
    FastlaneCore::ConfigItem.new(key: :code_version, description: 'Code version', optional: false, type: String),
    FastlaneCore::ConfigItem.new(key: :environment, description: 'Environment', optional: false, type: String),
  ]
end

.descriptionObject



18
19
20
# File 'lib/fastlane/plugin/rollbar/actions/rollbar_proguard_upload_action.rb', line 18

def self.description
  'Helps to upload Proguard mappings to Rollbar'
end

.detailsObject



30
31
32
33
# File 'lib/fastlane/plugin/rollbar/actions/rollbar_proguard_upload_action.rb', line 30

def self.details
  # Optional:
  'Helps to upload Proguard mappings to Rollbar'
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


44
45
46
47
48
49
50
# File 'lib/fastlane/plugin/rollbar/actions/rollbar_proguard_upload_action.rb', line 44

def self.is_supported?(platform)
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
  # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
  #
  %i[ios android].include?(platform)
  true
end

.return_valueObject



26
27
28
# File 'lib/fastlane/plugin/rollbar/actions/rollbar_proguard_upload_action.rb', line 26

def self.return_value
  # If your method provides a return value, you can describe here what it does
end

.run(params) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/fastlane/plugin/rollbar/actions/rollbar_proguard_upload_action.rb', line 9

def self.run(params)
  Helper::RollbarHelper.upload_proguard(
    params[:api_key],
    params[:proguard_path],
    params[:code_version],
    params[:environment],
  )
end