deliver/lib/deliver/upload_screenshots.rb in fastlane-2.54.3 vs deliver/lib/deliver/upload_screenshots.rb in fastlane-2.54.4
- old
+ new
@@ -68,21 +68,20 @@
UI.success("Successfully uploaded screenshots to iTunes Connect")
end
def collect_screenshots(options)
return [] if options[:skip_screenshots]
- return collect_screenshots_for_languages(options[:screenshots_path])
+ return collect_screenshots_for_languages(options[:screenshots_path], options[:ignore_language_directory_validation])
end
- def collect_screenshots_for_languages(path)
+ def collect_screenshots_for_languages(path, ignore_validation)
screenshots = []
extensions = '{png,jpg,jpeg}'
available_languages = Spaceship::Tunes.client.available_languages.each_with_object({}) do |lang, lang_hash|
lang_hash[lang.downcase] = lang
end
- ignore_validation = options[:ignore_language_directory_validation]
Loader.language_folders(path, ignore_validation).each do |lng_folder|
language = File.basename(lng_folder)
# Check to see if we need to traverse multiple platforms or just a single platform
if language == Loader::APPLE_TV_DIR_NAME || language == Loader::IMESSAGE_DIR_NAME