class Fastlane::Actions::SpeculidAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/speculid/actions/speculid_action.rb, line 21
def self.authors
  ["Leo Dion"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/speculid/actions/speculid_action.rb, line 34
def self.available_options
  [
    # FastlaneCore::ConfigItem.new(key: :your_option,
    #                         env_name: "SPECULID_YOUR_OPTION",
    #                      description: "A description of your option",
    #                         optional: false,
    #                             type: String)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/speculid/actions/speculid_action.rb, line 17
def self.description
  "Use speculid to Easily Manage Graphics in Xcode Projects"
end
details() click to toggle source
# File lib/fastlane/plugin/speculid/actions/speculid_action.rb, line 29
def self.details
  # Optional:
  "Speculid links a single graphic file to an Image Set or App Icon and automatically renders different resolutions, file types, and sizes for all the image specifications required."
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/speculid/actions/speculid_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
  #
  # [:ios, :mac, :android].include?(platform)
  true
end
return_value() click to toggle source
# File lib/fastlane/plugin/speculid/actions/speculid_action.rb, line 25
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/speculid/actions/speculid_action.rb, line 7
def self.run(params)
  unless File.file?("/Applications/Speculid.app/Contents/SharedSupport/speculid") then
    UI.error("Speculid is not installed. Please go to https://speculid.com to download and install.")
  end

  Dir.glob("**/*.speculid") do |path|
    system("/Applications/Speculid.app/Contents/SharedSupport/speculid", "--process", path)
  end
end