Sha256: 9ed0baf3e83104e6ca4fd13cabd6d18387cf5789b5f17b41d3a56c7abf7b59a9

Contents?: true

Size: 397 Bytes

Versions: 42

Compression:

Stored size: 397 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

42 entries across 42 versions & 1 rubygems

Version Path
fastlane-1.20.0 lib/fastlane/supported_platforms.rb
fastlane-1.19.0 lib/fastlane/supported_platforms.rb
fastlane-1.18.0 lib/fastlane/supported_platforms.rb
fastlane-1.17.1 lib/fastlane/supported_platforms.rb
fastlane-1.17.0 lib/fastlane/supported_platforms.rb
fastlane-1.16.0 lib/fastlane/supported_platforms.rb
fastlane-1.15.0 lib/fastlane/supported_platforms.rb
fastlane-1.14.1 lib/fastlane/supported_platforms.rb
fastlane-1.14.0 lib/fastlane/supported_platforms.rb
fastlane-1.13.1 lib/fastlane/supported_platforms.rb
fastlane-1.13.0 lib/fastlane/supported_platforms.rb
fastlane-1.12.0 lib/fastlane/supported_platforms.rb
fastlane-1.11.0 lib/fastlane/supported_platforms.rb
fastlane-1.10.0 lib/fastlane/supported_platforms.rb
fastlane-1.9.0 lib/fastlane/supported_platforms.rb
fastlane-1.8.0 lib/fastlane/supported_platforms.rb
fastlane-1.7.3 lib/fastlane/supported_platforms.rb
fastlane-1.7.2 lib/fastlane/supported_platforms.rb
fastlane-1.7.1 lib/fastlane/supported_platforms.rb
fastlane-1.7.0 lib/fastlane/supported_platforms.rb