deliver/lib/deliver/app_screenshot_iterator.rb in fastlane-2.161.0 vs deliver/lib/deliver/app_screenshot_iterator.rb in fastlane-2.162.0
- old
+ new
@@ -50,14 +50,14 @@
yield(localization, app_screenshot_set, app_screenshot)
end
end
end
- # Iterate given local app_screenshot over localizations and app_screenshot_sets with index within each app_screenshot_set
+ # Iterate given local app_screenshot over localizations and app_screenshot_sets
#
# @param screenshots_per_language [Hash<String, Array<Deliver::AppScreenshot>]
- # @yield [localization, app_screenshot_set, app_screenshot, index]
+ # @yield [localization, app_screenshot_set, app_screenshot]
# @yieldparam [optional, Spaceship::ConnectAPI::AppStoreVersionLocalization] localization
# @yieldparam [optional, Spaceship::ConnectAPI::AppStoreScreenshotSet] app_screenshot_set
# @yieldparam [optional, Deliver::AppScreenshot] screenshot
# @yieldparam [optional, Integer] index a number reperesents which position the screenshot will be
def each_local_screenshot(screenshots_per_language, &block)
@@ -83,11 +83,11 @@
# create AppScreenshotSet for given display_type if it doesn't exsit
app_screenshot_set = (app_screenshot_set_per_locale_and_display_type[language] || {})[display_type]
app_screenshot_set ||= localization.create_app_screenshot_set(attributes: { screenshotDisplayType: display_type })
# iterate over screenshots per display size with index
- screenshots.each.with_index do |screenshot, index|
- yield(localization, app_screenshot_set, screenshot, index)
+ screenshots.each do |screenshot|
+ yield(localization, app_screenshot_set, screenshot)
end
end
end
end
end