Sha256: 892d483379b563f78e01fdb591d4720f1d15c02de2727fa0d28fe25ea49642f5

Contents?: true

Size: 689 Bytes

Versions: 656

Compression:

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

656 entries across 656 versions & 5 rubygems

Version Path
fastlane-2.81.0.beta.20180204010002 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.81.0.beta.20180203010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.81.0.beta.20180202010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.80.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.80.0.beta.20180201010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.80.0.beta.20180131010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.80.0.beta.20180130010002 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.79.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.79.0.beta.20180129010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.79.0.beta.20180128010002 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.79.0.beta.20180127010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.79.0.beta.20180126010002 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.79.0.beta.20180125010002 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.79.0.beta.20180124010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.79.0.beta.20180123010002 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.78.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.78.0.beta.20180122010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.78.0.beta.20180121010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.78.0.beta.20180120010003 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.78.0.beta.20180119010003 fastlane/lib/fastlane/supported_platforms.rb