spaceship/lib/spaceship/du/du_client.rb in fastlane-2.126.0.beta.20190616200045 vs spaceship/lib/spaceship/du/du_client.rb in fastlane-2.126.0.beta.20190617200114
- old
+ new
@@ -44,9 +44,13 @@
def upload_trailer_preview(app_version, upload_file, content_provider_id, sso_token_for_image, device)
upload_file(app_version: app_version, upload_file: upload_file, path: '/upload/image', content_provider_id: content_provider_id, sso_token: sso_token_for_image, du_validation_rule_set: screenshot_picture_type(device, nil))
end
+ def upload_app_review_attachment(app_version, upload_file, content_provider_id, sso_token_for_attachment)
+ upload_file(app_version: app_version, upload_file: upload_file, path: '/upload/app-resolution-file', content_provider_id: content_provider_id, sso_token: sso_token_for_attachment)
+ end
+
def get_picture_type(upload_file)
resolution = Utilities.resolution(upload_file.file_path)
result = device_resolution_map.find do |key, resolutions|
resolutions.include?(resolution)
end