spaceship/lib/spaceship/tunes/app_version.rb in fastlane-2.121.0.beta.20190421200026 vs spaceship/lib/spaceship/tunes/app_version.rb in fastlane-2.121.0.beta.20190422200029

- old
+ new

@@ -1,10 +1,10 @@ require_relative 'tunes_client' require_relative 'app_trailer' require_relative 'app_screenshot' require_relative 'app_image' -require_relative 'device_type' +require_relative 'display_family' require_relative 'app_version_generated_promocodes' require_relative 'language_item' require_relative 'transit_app_file' require_relative 'build' require_relative 'app_status' @@ -690,10 +690,10 @@ def trailer_data_for_language_and_device(language, device) container_data_for_language_and_device("trailers", language, device) end def container_data_for_language_and_device(data_field, language, device) - raise "#{device} isn't a valid device name" unless DeviceType.exists?(device) + raise "#{device} isn't a valid device name" unless DisplayFamily.find(device) languages = raw_data_details.select { |d| d["language"] == language } # IDEA: better error for non existing language raise "#{language} isn't an activated language" unless languages.count > 0 lang_details = languages[0]