deliver/lib/deliver/upload_screenshots.rb in fastlane-2.55.0.beta.20170823010002 vs deliver/lib/deliver/upload_screenshots.rb in fastlane-2.55.0.beta.20170824010002
- old
+ new
@@ -66,21 +66,24 @@
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)
end
- def collect_screenshots_for_languages(path)
+ def collect_screenshots_for_languages(options)
+ path = options[:screenshots_path]
+
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
- Loader.language_folders(path).each do |lng_folder|
+ 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
screenshots.concat(collect_screenshots_for_languages(File.join(path, language)))