Method: Deliver::AppScreenshotValidator.validate_device_type
- Defined in:
- deliver/lib/deliver/app_screenshot_validator.rb
.validate_device_type(screenshot, errors_found) ⇒ Object
Checking if the device type exists in spaceship Ex: iPhone 6.1 inch isn’t supported in App Store Connect but need to have it in there for frameit support
68 69 70 71 72 73 74 75 |
# File 'deliver/lib/deliver/app_screenshot_validator.rb', line 68 def self.validate_device_type(screenshot, errors_found) if !screenshot.screen_size.nil? && screenshot.device_type.nil? errors_found << ValidationError.new(type: ValidationError::UNACCEPTABLE_DEVICE, path: screenshot.path, debug_info: "Screen size #{screenshot.screen_size} is not accepted. See the specifications to fix #{APP_SCREENSHOT_SPEC_URL}", to_skip: true) end end |