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.36.0 lib/fastlane/supported_platforms.rb
fastlane-1.35.0 lib/fastlane/supported_platforms.rb
fastlane-1.34.0 lib/fastlane/supported_platforms.rb
fastlane-1.33.6 lib/fastlane/supported_platforms.rb
fastlane-1.33.5 lib/fastlane/supported_platforms.rb
fastlane-1.33.4 lib/fastlane/supported_platforms.rb
fastlane-1.33.3 lib/fastlane/supported_platforms.rb
fastlane-1.33.2 lib/fastlane/supported_platforms.rb
fastlane-1.33.1 lib/fastlane/supported_platforms.rb
fastlane-1.33.0 lib/fastlane/supported_platforms.rb
fastlane-1.32.4 lib/fastlane/supported_platforms.rb
fastlane-1.32.3 lib/fastlane/supported_platforms.rb
fastlane-1.32.2 lib/fastlane/supported_platforms.rb
fastlane-1.32.1 lib/fastlane/supported_platforms.rb
fastlane-1.32.0 lib/fastlane/supported_platforms.rb
fastlane-1.31.0 lib/fastlane/supported_platforms.rb
fastlane-1.30.2 lib/fastlane/supported_platforms.rb
fastlane-1.30.1 lib/fastlane/supported_platforms.rb
fastlane-1.30.0 lib/fastlane/supported_platforms.rb
fastlane-1.29.2 lib/fastlane/supported_platforms.rb