Sha256: 140ef6eac06c3c19003a052a02db9293bae965a92b0222aaf1d3a1dc8d6fff30

Contents?: true

Size: 687 Bytes

Versions: 69

Compression:

Stored size: 687 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 plaforms are #{self.all}.")
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
fastlane-2.26.0.beta.20170405010026 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.26.0.beta.20170404010022 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.25.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.25.0.beta.20170403010018 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.25.0.beta.20170402010035 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.25.0.beta.20170401010021 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.25.0.beta.20170331010039 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.25.0.beta.20170330225747 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.24.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.24.0.beta.20170330010023 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.24.0.beta.20170329010023 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.24.0.beta.20170328010037 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.24.0.beta.20170327010009 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.24.0.beta.20170326010023 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.24.0.beta.20170325010032 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.23.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.23.0.beta.20170322010036 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.22.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.22.0.beta.20170321010023 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.21.0 fastlane/lib/fastlane/supported_platforms.rb