Sha256: 28f56b8acd1297e162b4072230ee9a01e3d8b8748e0d34fb7088d4fd17b857b1

Contents?: true

Size: 688 Bytes

Versions: 366

Compression:

Stored size: 688 Bytes

Contents

module Fastlane
  class SupportedPlatforms
    class << self
      attr_accessor :extra
      attr_reader :default

      def extra=(value)
        value ||= []
        UI.important("Setting '#{value}' as extra SupportedPlatforms")
        @extra = value
      end
    end

    @default = [:ios, :mac, :android]
    @extra = []

    def self.all
      (@default + @extra).flatten
    end

    # this will log a warning if the passed platform is not supported
    def self.verify!(platform)
      unless all.include? platform.to_s.to_sym
        UI.important("Platform '#{platform}' is not officially supported. Currently supported platforms are #{self.all}.")
      end
    end
  end
end

Version data entries

366 entries across 366 versions & 1 rubygems

Version Path
fastlane-2.63.0.beta.20171024010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.62.1 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.63.0.beta.20171023010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.63.0.beta.20171022010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.63.0.beta.20171021010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.63.0.beta.20171020010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.63.0.beta.20171019010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.63.0.beta.20171018010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.62.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.62.0.beta.20171017010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.62.0.beta.20171016010004 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.62.0.beta.20171015010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.62.0.beta.20171014010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.62.0.beta.20171011010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.62.0.beta.20171010010004 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.61.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.61.0.beta.20171009010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.61.0.beta.20171008010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.61.0.beta.20171007010004 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.61.0.beta.20171006010004 fastlane/lib/fastlane/supported_platforms.rb