Sha256: e948fd774f4e1e89aae31576983a2385d17c2ef81d8f5acc627f096d6eadbec8

Contents?: true

Size: 405 Bytes

Versions: 72

Compression:

Stored size: 405 Bytes

Contents

module Fastlane
  class SupportedPlatforms
    def self.all
      [
        :ios,
        :mac,
        :android
      ]
    end

    # this will throw an exception if the passed platform is not supported
    def self.verify!(platform)
      unless all.include? platform.to_s.to_sym
        UI.user_error!("Platform '#{platform}' is not supported. Must be either #{self.all}")
      end
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
fastlane-2.14.2 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.14.1 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.14.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.13.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.12.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.11.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.10.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.9.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.8.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.7.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.6.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.5.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.4.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.3.1 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.3.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.2.0 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.1.3 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.1.2 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.1.1 fastlane/lib/fastlane/supported_platforms.rb
fastlane-2.1.0 fastlane/lib/fastlane/supported_platforms.rb