deliver/lib/deliver/html_generator.rb in fastlane-2.154.0 vs deliver/lib/deliver/html_generator.rb in fastlane-2.155.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'spaceship' + require_relative 'module' module Deliver class HtmlGenerator # Splits keywords supporting: @@ -49,10 +51,15 @@ @app_name = (options[:name]['en-US'] || options[:name].values.first) if options[:name] @app_name ||= options[:app].name @languages = options[:description].keys if options[:description] - @languages ||= options[:app].latest_version.description.languages + @languages ||= begin + platform = Spaceship::ConnectAPI::Platform.map(options[:platform]) + version = options[:app].get_edit_app_store_version(platform: platform) + + version.get_app_store_version_localizations.collect(&:locale) + end html_path = File.join(Deliver::ROOT, "lib/assets/summary.html.erb") html = ERB.new(File.read(html_path)).result(binding) # https://web.archive.org/web/20160430190141/www.rrn.dk/rubys-erb-templating-system export_path = File.join(export_path, "Preview.html")