Sha256: 764d37f0343a1d24c753889c2f9740cc25b958da6b3ca05076486b74c79b212d

Contents?: true

Size: 1.4 KB

Versions: 3

Compression:

Stored size: 1.4 KB

Contents

require 'fastlane/action'
require_relative '../helper/<%= plugin_name %>_helper'

module Fastlane
  module Actions
    class <%= plugin_name.fastlane_class %>Action < Action
      def self.run(params)
        UI.message("The <%= plugin_name %> plugin is working!")
      end

      def self.description
        "<%= summary.gsub('"', "'") %>"
      end

      def self.authors
        ["<%= author.gsub('"', "'") %>"]
      end

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

      def self.details
        # Optional:
        "<%= details.gsub('"', "'") %>"
      end

      def self.available_options
        [
          # FastlaneCore::ConfigItem.new(key: :your_option,
          #                         env_name: "<%= plugin_name.upcase %>_YOUR_OPTION",
          #                      description: "A description of your option",
          #                         optional: false,
          #                             type: String)
        ]
      end

      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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb
fastlane_hotfix-2.165.0 fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb
fastlane_hotfix-2.187.0 fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb