deliver/lib/deliver/upload_screenshots.rb in fastlane-2.150.0.rc4 vs deliver/lib/deliver/upload_screenshots.rb in fastlane-2.150.0.rc5

- old
+ new

@@ -94,10 +94,16 @@ upload_screenshots(screenshots_per_language, localizations) end def upload_screenshots(screenshots_per_language, localizations) + # Check if should wait for processing + wait_for_processing = !FastlaneCore::Env.truthy?("DELIVER_SKIP_WAIT_FOR_SCREENSHOT_PROCESSING") + if wait_for_processing + UI.important("Set environment variable DELIVER_SKIP_WAIT_FOR_SCREENSHOT_PROCESSING=true to skip waiting for screenshots to process") + end + # Upload screenshots indized = {} # per language and device type screenshots_per_language.each do |language, screenshots_for_language| # Find localization to upload screenshots to @@ -164,10 +170,10 @@ if duplicate UI.message("Previous uploaded. Skipping '#{screenshot.path}'...") else indized[localization.locale][set.screenshot_display_type][:count] += 1 UI.message("Uploading '#{screenshot.path}'...") - set.upload_screenshot(path: screenshot.path) + set.upload_screenshot(path: screenshot.path, wait_for_processing: wait_for_processing) end end end UI.success("Successfully uploaded screenshots to App Store Connect") end