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.114.0.beta.20190108200048 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20190107200010 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20190106200016 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20190105200036 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20190104200013 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20190103200013 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20190102200016 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20190101200013 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181231200027 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181230200014 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181229200101 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181228200027 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181227200058 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181226200116 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181225200026 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181224200038 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181223200038 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181222200027 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.113.0.beta.20181221200014 fastlane/lib/fastlane/supported_platforms.rb