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.225.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.224.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.223.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.223.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.222.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.221.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.221.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.220.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.219.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.218.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-security-patched-2.216.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.217.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.216.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.215.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.215.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-mercafacil-2.214.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.214.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.213.0 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane-2.212.2 fastlane/lib/fastlane/actions/add_extra_platforms.rb
fastlane_pricing_fix-2.212.1 fastlane/lib/fastlane/actions/add_extra_platforms.rb