<% @languages.each do |language| %>
<% if @options[:name] %>
<%= language %>: <%= @options[:name][language] %>
<% else %>
<%= language %>
<% end %>
<% all_keys = [:support_url, :marketing_url] %>
<% all_keys.each do |key| %>
<% value = @options[key][language] if @options[key] %>
<% if value %>
<% end %>
<% end %>
<% if @options[:keywords] and @options[:keywords][language] %>
Keywords
<% split_keywords(@options[:keywords][language]).each do |keyword| %>
- <%= keyword %>
<% end %>
<% end %>
<% if @options[:description] %>
Description
<%= (@options[:description][language] || '').gsub("\n", "
") %>
<% end %>
<% if @options[:release_notes] %>
Changelog
<%= (@options[:release_notes][language] || '').gsub("\n", "
") %>
<% end %>
Screenshots
<% if options[:skip_screenshots] %>
Skipped Screenshots
Options to skip_screenshots activated. deliver will not modify your app screenshots.
<% elsif @screenshots.count > 0 %>
<% sc = @screenshots.find_all { |s| s.language == language } %>
<% sc_by_size = sc.group_by { |i| i.screen_size } %>
<% sc_by_size.keys.sort.each do |screen_size| %>
<% screenshots = sc_by_size[screen_size].sort { |a, b| [a.path] <=> [b.path] } %>
<%# we are guaranteed to have at least one element because of the group_by %>
<%= screenshots[0].formatted_name %>
<% screenshots.each_with_index do |screenshot, index| %>
<% end %>
<% end %>
<% else %>
No Screenshots Found
deliver couldn't find any screenshots.
<% if options[:overwrite_screenshots] %>
--overwrite_screenshots is set, existing screenshots will be removed, but none will be uploaded.
<% else %>
The existing screenshots on iTunes Connect will be kept.
if you want to remove them you have to use the --overwrite_screenshots flag.
<% end %>
If you want to download your existing screenshots, run deliver download_screenshots.
<% end %>
<% end # end data %>