class Fastlane::Actions::AddBadgeAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/badge/actions/add_badge_action.rb, line 13
def self.authors
  ["HazAT"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/badge/actions/add_badge_action.rb, line 30
def self.available_options
  Helper::BadgeHelper.available_options
end
description() click to toggle source
# File lib/fastlane/plugin/badge/actions/add_badge_action.rb, line 9
def self.description
  "Automatically add a badge to your app icon"
end
details() click to toggle source
# File lib/fastlane/plugin/badge/actions/add_badge_action.rb, line 21
def self.details
  [
    "This action will add a light/dark badge onto your app icon.",
    "You can also provide your custom badge/overlay or add an shield for more customization more info:",
    "https://github.com/HazAT/badge",
    "**Note** If you want to reset the badge back to default you can use `sh 'git checkout -- <path>/Assets.xcassets/'`"
  ].join("\n")
end
example_code() click to toggle source
# File lib/fastlane/plugin/badge/actions/add_badge_action.rb, line 34
def self.example_code
  [
    'add_badge(dark: true)',
    'add_badge(alpha: true)',
    'add_badge(custom: "/Users/xxx/Desktop/badge.png")',
    'add_badge(shield: "Version-0.0.3-blue", no_badge: true)'
  ]
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/badge/actions/add_badge_action.rb, line 43
def self.is_supported?(platform)
  [:ios, :mac, :android].include?(platform)
end
return_value() click to toggle source
# File lib/fastlane/plugin/badge/actions/add_badge_action.rb, line 17
def self.return_value
  # If your method provides a return value, you can describe here what it does
end
run(params) click to toggle source
# File lib/fastlane/plugin/badge/actions/add_badge_action.rb, line 4
def self.run(params)
  Actions.verify_gem!('badge')
  Helper::BadgeHelper.run(params)
end