supply/lib/supply/uploader.rb in fastlane_hotfix-2.165.1 vs supply/lib/supply/uploader.rb in fastlane_hotfix-2.187.0

- old
+ new

@@ -190,13 +190,14 @@ end release = releases.first track_to = client.tracks(Supply.config[:track_promote_to]).first - if Supply.config[:rollout] + rollout = (Supply.config[:rollout] || 0).to_f + if rollout > 0 && rollout < 1 release.status = Supply::ReleaseStatus::IN_PROGRESS - release.user_fraction = Supply.config[:rollout] + release.user_fraction = rollout else release.status = Supply::ReleaseStatus::COMPLETED release.user_fraction = nil end @@ -230,14 +231,14 @@ else UI.message("Could not find changelog for '#{version_code}' and language '#{language}' at path #{path}...") end end - AndroidPublisher::LocalizedText.new({ + AndroidPublisher::LocalizedText.new( language: language, text: changelog_text - }) + ) end def upload_changelogs(release_notes, release, track) release.release_notes = release_notes client.upload_changelogs(track, Supply.config[:track]) @@ -301,9 +302,10 @@ def upload_mapping(apk_version_codes) mapping_paths = [Supply.config[:mapping]] unless (mapping_paths = Supply.config[:mapping_paths]) mapping_paths.zip(apk_version_codes).each do |mapping_path, version_code| if mapping_path + UI.message("Preparing mapping at path '#{mapping_path}', version code #{version_code} for upload...") client.upload_mapping(mapping_path, version_code) end end end