lib/spaceship/tunes/application.rb in spaceship-0.39.0 vs lib/spaceship/tunes/application.rb in spaceship-1.0.0
- old
+ new
@@ -62,10 +62,10 @@
# @return (Spaceship::Tunes::Application) Returns the application matching the parameter
# as either the App ID or the bundle identifier
def find(identifier, mac: false)
all.find do |app|
(app.apple_id == identifier.to_s || app.bundle_id == identifier) &&
- app.version_sets.any? { |v| v.platform == (mac ? "osx" : "ios") }
+ app.version_sets.any? { |v| (mac ? ["osx"] : ["ios", "appletvos"]).include?(v.platform) }
end
end
# Creates a new application on iTunes Connect
# @param name (String): The name of your app as it will appear on the App Store.