Module: Spaceship::ConnectAPI::BundleIdPlatform
- Defined in:
- spaceship/lib/spaceship/connect_api.rb
Overview
Defined in the App Store Connect API docs:
Used for creating BundleId and Device
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.map(platform) ⇒ Object
123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'spaceship/lib/spaceship/connect_api.rb', line 123 def self.map(platform) return platform if ALL.include?(platform) # Map from fastlane input and Spaceship::TestFlight platform values case platform.to_sym when :osx, :macos, :mac return Spaceship::ConnectAPI::Platform::MAC_OS when :ios, :xros, :visionos return Spaceship::ConnectAPI::Platform::IOS else raise "Cannot find a matching platform for '#{platform}' - valid values are #{ALL.join(', ')}" end end |