Sha256: ec79c19cd59a2ab19de542e84b125b5d4deff433c5a30e39a7e301fdf4538545

Contents?: true

Size: 1.16 KB

Versions: 435

Compression:

Stored size: 1.16 KB

Contents

module Fastlane
  module Actions
    class AddExtraPlatformsAction < Action
      def self.run(params)
        UI.verbose "Before injecting extra platforms: #{Fastlane::SupportedPlatforms.all}"
        Fastlane::SupportedPlatforms.extra = params[:platforms]
        UI.verbose "After injecting extra platforms (#{params[:platforms]})...: #{Fastlane::SupportedPlatforms.all}"
      end

      def self.description
        "Modify the default list of supported platforms"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :platforms,
                                       optional: false,
                                       type: Array,
                                       default_value: "",
                                       description: "The optional extra platforms to support")
        ]
      end

      def self.authors
        ["lacostej"]
      end

      def self.is_supported?(platform)
        true
      end

      def self.example_code
        [
          'add_extra_platforms(
            platforms: [:windows,:neogeo]
          )'
        ]
      end

      def self.category
        :misc
      end
    end
  end
end

Version data entries

435 entries across 435 versions & 1 rubygems

Version Path
fastlane-2.74.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.74.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.74.0.beta.20180108010004 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.74.0.beta.20180107010004 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.74.0.beta.20180106010004 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.73.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.73.0.beta.20180105010003 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.73.0.beta.20180104010004 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.73.0.beta.20180103010003 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.72.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.72.0.beta.20180102010003 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.72.0.beta.20180101010003 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.72.0.beta.20171231010003 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.71.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.72.0.beta.20171230010003 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.72.0.beta.20171229010003 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.72.0.beta.20171228010004 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.71.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.71.0.beta.20171227010004 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.71.0.beta.20171226010004 fastlane/lib/fastlane/actions/add_extra_platforms.rb