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.129.0.beta.20190723200012 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190722200021 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190721200024 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190720200049 fastlane/lib/fastlane/supported_platforms.rb
fastlane_iac_publish-0.1.5 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.2 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190719200019 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190718200101 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190717200026 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190716200022 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190715200056 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190714200028 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190713200107 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190712200059 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190711200117 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.1 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.128.0.beta.20190710200106 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.127.0.beta.20190709200015 fastlane/lib/fastlane/supported_platforms.rb