Class: Fastlane::Actions::IconBannerAction

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

Class Method Summary collapse

Class Method Details

.authorsObject



16
17
18
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_action.rb', line 16

def self.authors
  ['ebelair']
end

.available_optionsObject



20
21
22
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_action.rb', line 20

def self.available_options
  Helper::IconBannerHelper.available_options
end

.descriptionObject



12
13
14
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_action.rb', line 12

def self.description
  'Adds custom nice-looking banners over your mobile app icons'
end

.example_codeObject



24
25
26
27
28
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_action.rb', line 24

def self.example_code
  [
      'icon_banner(label: "Staging")'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_action.rb', line 30

def self.is_supported?(platform)
  [:ios, :android].include?(platform)
end

.run(params) ⇒ Object



7
8
9
10
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_action.rb', line 7

def self.run(params)
  Actions.verify_gem!('icon-banner')
  Helper::IconBannerHelper.generate(params)
end