spaceship/lib/spaceship/connect_api.rb in fastlane-2.219.0 vs spaceship/lib/spaceship/connect_api.rb in fastlane-2.220.0
- old
+ new
@@ -84,13 +84,14 @@
# Used for query param filters
module Platform
IOS = "IOS"
MAC_OS = "MAC_OS"
TV_OS = "TV_OS"
+ VISION_OS = "VISION_OS"
WATCH_OS = "WATCH_OS"
- ALL = [IOS, MAC_OS, TV_OS, WATCH_OS]
+ ALL = [IOS, MAC_OS, TV_OS, VISION_OS, WATCH_OS]
def self.map(platform)
return platform if ALL.include?(platform)
# Map from fastlane input and Spaceship::TestFlight platform values
@@ -99,10 +100,12 @@
return Spaceship::ConnectAPI::Platform::TV_OS
when :osx, :macos, :mac
return Spaceship::ConnectAPI::Platform::MAC_OS
when :ios
return Spaceship::ConnectAPI::Platform::IOS
+ when :xros, :visionos
+ return Spaceship::ConnectAPI::Platform::VISION_OS
else
raise "Cannot find a matching platform for '#{platform}' - valid values are #{ALL.join(', ')}"
end
end
end
@@ -121,10 +124,10 @@
# 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
+ 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