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.127.0.beta.20190708200031 fastlane/lib/fastlane/supported_platforms.rb
fastlane_iac_publish-0.1.4 fastlane/lib/fastlane/supported_platforms.rb
fastlane_iac_publish-0.1.3 fastlane/lib/fastlane/supported_platforms.rb
fastlane_iac_publish-0.1.2 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190707200017 fastlane/lib/fastlane/supported_platforms.rb
fastlane_iac_publish-0.1.1 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190706200054 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190705200056 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190704200049 fastlane/lib/fastlane/supported_platforms.rb
fastlane_iac_publish-0.1.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190703200032 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190701200019 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190630200023 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190629200029 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190628200030 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190627200058 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190625200058 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190624200045 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.126.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.126.0.beta.20190623200100 fastlane/lib/fastlane/supported_platforms.rb