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.131.0.beta.20190901200035 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.131.0.beta.20190831200041 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.131.0.beta.20190830200038 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190829200051 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190828200015 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190827200051 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190826200016 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190825200030 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190824200021 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190823200017 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190822200101 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190821200034 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190820200024 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190819200109 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190818200034 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190817200018 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190816200015 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190815200057 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.130.0.beta.20190814200010 fastlane/lib/fastlane/supported_platforms.rb