Skip to content

Commit

Permalink
[match] fix devices fetch for tvOS platform (#21828)
Browse files Browse the repository at this point in the history
* match: fix devices fetch for tvOS paltform

* fix: device_platform for tvOS
  • Loading branch information
nekrich committed Feb 9, 2024
1 parent 4c8f207 commit 87151ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spaceship/lib/spaceship/connect_api/models/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def self.devices_for_platform(platform: nil, include_mac_in_profiles: false, cli
device_platform = case platform
when :osx, :macos, :mac
Spaceship::ConnectAPI::Platform::MAC_OS
when :ios
when :ios, :tvos
Spaceship::ConnectAPI::Platform::IOS
when :catalyst
Spaceship::ConnectAPI::Platform::MAC_OS
Expand Down Expand Up @@ -106,9 +106,9 @@ def self.devices_for_platform(platform: nil, include_mac_in_profiles: false, cli
end

filter = {
status: Spaceship::ConnectAPI::Device::Status::ENABLED,
platform: device_platforms.uniq.join(',')
status: Spaceship::ConnectAPI::Device::Status::ENABLED
}
filter[:platform] = device_platforms.uniq.join(',') unless device_platforms.empty?

devices = Spaceship::ConnectAPI::Device.all(
client: client,
Expand Down

0 comments on commit 87151ca

Please sign in to comment.