Sha256: d70bdbf47a6146252f8971aab9c86b06b67637cb453ee59cc51d29a93db833bf

Contents?: true

Size: 1.17 KB

Versions: 501

Compression:

Stored size: 1.17 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

501 entries across 501 versions & 5 rubygems

Version Path
fastlane-2.189.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.188.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.187.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.186.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.185.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.185.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.184.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.184.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.183.2 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.183.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.183.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.182.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.181.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.180.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.180.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.179.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.178.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.177.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.176.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.175.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb