Sha256: 892d483379b563f78e01fdb591d4720f1d15c02de2727fa0d28fe25ea49642f5

Contents?: true

Size: 689 Bytes

Versions: 657

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

657 entries across 657 versions & 5 rubygems

Version Path
fastlane-2.94.0.beta.20180430050033 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.94.0.beta.20180429050039 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.94.0.beta.20180428050023 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.94.0.beta.20180427050031 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.94.0.beta.20180426050049 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.94.0.beta.20180425050017 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.93.1 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.94.0.beta.20180424050050 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.93.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.93.0.beta.20180423050019 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.93.0.beta.20180422050034 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.93.0.beta.20180421050012 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.93.0.beta.20180420050021 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.93.0.beta.20180419050008 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.93.0.beta.20180418050020 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.92.1 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.93.0.beta.20180417050013 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.92.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.92.0.beta.20180416050023 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.92.0.beta.20180415050019 fastlane/lib/fastlane/supported_platforms.rb