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.119.0.beta.20190322200024 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.119.0.beta.20190321200022 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.119.0.beta.20190320200107 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.119.0.beta.20190319200014 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.119.0.beta.20190318200034 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.1 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190317200034 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190316200016 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190315200105 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190314200016 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190313200029 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190312200018 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190311200036 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190310200100 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190309200014 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190308200057 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190307200117 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190306200052 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.118.0.beta.20190305200056 fastlane/lib/fastlane/supported_platforms.rb