Skip to content

Commit

Permalink
[spaceship] Fix filtering of Mac devices when trying to create a macO…
Browse files Browse the repository at this point in the history
…S profile (#21915)
  • Loading branch information
AliSoftware committed Mar 9, 2024
1 parent f3cdc2d commit 9ae433c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spaceship/lib/spaceship/connect_api/models/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ module DeviceClass
APPLE_TV = "APPLE_TV"
MAC = "MAC"

# As of 2022-11-12, this is not officially supported by App Store Connect API
# As of 2024-03-08, this is not _officially_ supported by App Store Connect API (according to API docs)—yet still used in the API responses
APPLE_SILICON_MAC = "APPLE_SILICON_MAC"
INTEL_MAC = "INTEL_MAC"
end

module Status
Expand Down Expand Up @@ -94,7 +95,9 @@ def self.devices_for_platform(platform: nil, include_mac_in_profiles: false, cli
]
when :macos, :catalyst
[
Spaceship::ConnectAPI::Device::DeviceClass::MAC
Spaceship::ConnectAPI::Device::DeviceClass::MAC,
Spaceship::ConnectAPI::Device::DeviceClass::APPLE_SILICON_MAC,
Spaceship::ConnectAPI::Device::DeviceClass::INTEL_MAC
]
else
[]
Expand Down

0 comments on commit 9ae433c

Please sign in to comment.