Sha256: db873d74cf06995100d9aadee4f4e87ef5dad93bfb3bf86a6b47856d356bd937

Contents?: true

Size: 399 Bytes

Versions: 71

Compression:

Stored size: 399 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
        raise "Platform '#{platform}' is not supported. Must be either #{self.all}".red
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
fastlane-1.68.0 lib/fastlane/supported_platforms.rb
fastlane-1.67.0 lib/fastlane/supported_platforms.rb
fastlane-1.66.0 lib/fastlane/supported_platforms.rb
fastlane-1.65.0 lib/fastlane/supported_platforms.rb
fastlane-1.64.0 lib/fastlane/supported_platforms.rb
fastlane-1.63.1 lib/fastlane/supported_platforms.rb
fastlane-1.63.0 lib/fastlane/supported_platforms.rb
fastlane-1.62.0 lib/fastlane/supported_platforms.rb
fastlane-1.61.0 lib/fastlane/supported_platforms.rb
fastlane-1.60.0 lib/fastlane/supported_platforms.rb
fastlane-1.59.0 lib/fastlane/supported_platforms.rb
fastlane-1.58.0 lib/fastlane/supported_platforms.rb
fastlane-1.57.0 lib/fastlane/supported_platforms.rb
fastlane-1.56.0 lib/fastlane/supported_platforms.rb
fastlane-1.55.0 lib/fastlane/supported_platforms.rb
fastlane-1.54.0 lib/fastlane/supported_platforms.rb
fastlane-1.53.0 lib/fastlane/supported_platforms.rb
fastlane-1.52.0 lib/fastlane/supported_platforms.rb
fastlane-1.51.0 lib/fastlane/supported_platforms.rb
fastlane-1.50.0 lib/fastlane/supported_platforms.rb