fastlane-plugin-amazon_appstore 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe05c393d60b47ae7056bba08ebecb83c0938413d9773fafbf4523561a3d80cb
4
- data.tar.gz: 7ffcd28240b237ebc7d30b9c865b4521662bdd28a9cd33613087f6d7765ed558
3
+ metadata.gz: 5c51392a7329c7598b6a5a10e2e2a19e786af178493684b66822771af63e3d3a
4
+ data.tar.gz: a9476c2fb18dc10f56b8d37a374d365d2a1ea2cbd94b666706273a5a807a148c
5
5
  SHA512:
6
- metadata.gz: aa9e81ecd54a493a472978e12a151d24314b04177771ff3448e89b88bf5e00c622816582671ae52beba5dc6340f4eb16fb2fabe4bc309b788153fbd3a6db761a
7
- data.tar.gz: 0d5c668cf8d8d77c5275b26bf17043b22a584f0f5b0d271edfc50b355e76e0c05acacf618350de4747a6941dd112e1511f9a28515f7db9d78aca937534e50a25
6
+ metadata.gz: 6fee920794f68739c1e6d81c10503c2848cd87d39fe583bd4fd492d97a2cba41bfacdf5a0d6273d02fe11c607fb9e46e47d85ba40c33edff223d38cb8c98c461
7
+ data.tar.gz: e2bca218c41fc9221ed6184c20f1b4e861a9f4c54adb7aaf4573cbdf479bdfadc96ab629d24bf21aac3ede59a58852485b861c1f467e34365ddce54ceddfe011
@@ -182,12 +182,13 @@ module Fastlane
182
182
  end
183
183
 
184
184
  def self.update_changelogs(app_id:, edit_id:, token:, version_codes:, skip_upload_changelogs:, metadata_path:)
185
- return if skip_upload_changelogs
186
- return if version_codes.empty?
187
-
188
185
  # Use the highest version code's changelog (same as Fastlane's approach)
189
186
  max_version_code = version_codes.max
190
- UI.message("Updating changelogs using highest version code: #{max_version_code}")
187
+ if max_version_code.nil?
188
+ UI.message("Ensuring release notes placeholder is present...")
189
+ else
190
+ UI.message("Updating changelogs using highest version code: #{max_version_code}")
191
+ end
191
192
 
192
193
  listings_path = "api/appstore/v1/applications/#{app_id}/edits/#{edit_id}/listings"
193
194
  listings_response = api_client.get(listings_path) do |request|
@@ -196,6 +197,10 @@ module Fastlane
196
197
  raise StandardError, listings_response.body unless listings_response.success?
197
198
 
198
199
  listings_response.body[:listings].each do |lang, listing|
200
+ # When only the "-" placeholder would be written, keep existing
201
+ # release notes untouched and fill it in only when they are missing.
202
+ next if (skip_upload_changelogs || max_version_code.nil?) && !listing[:recentChanges].to_s.strip.empty?
203
+
199
204
  # Get fresh ETag for each language update to avoid conflicts
200
205
  etag_response = api_client.get(listings_path) do |request|
201
206
  request.headers['Authorization'] = "Bearer #{token}"
@@ -207,7 +212,7 @@ module Fastlane
207
212
  listing[:recentChanges] = find_changelog(
208
213
  language: listing[:language],
209
214
  version_code: max_version_code,
210
- skip_upload_changelogs: false,
215
+ skip_upload_changelogs: skip_upload_changelogs,
211
216
  metadata_path: metadata_path
212
217
  )
213
218
 
@@ -350,7 +355,7 @@ module Fastlane
350
355
  target_path = File.join(images_path, mapping)
351
356
 
352
357
  if File.directory?(target_path)
353
- Dir.glob(File.join(target_path, '*.{png,jpg,jpeg}')).sort
358
+ Dir.glob(File.join(target_path, '*.{png,jpg,jpeg}'))
354
359
  elsif File.exist?(target_path)
355
360
  [target_path]
356
361
  else
@@ -404,7 +409,7 @@ module Fastlane
404
409
  # The Amazon appstore requires you to enter changelogs before reviewing.
405
410
  # Therefore, if there is no metadata, hyphen text is returned.
406
411
  changelog_text = '-'
407
- return changelog_text if skip_upload_changelogs
412
+ return changelog_text if skip_upload_changelogs || version_code.nil?
408
413
 
409
414
  path = File.join(metadata_path, language, 'changelogs', "#{version_code}.txt")
410
415
  if File.exist?(path) && !File.empty?(path)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AmazonAppstore
3
- VERSION = "1.6.0"
3
+ VERSION = "1.6.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-amazon_appstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ntsk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-07 00:00:00.000000000 Z
11
+ date: 2026-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -215,7 +215,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
215
  requirements:
216
216
  - - ">="
217
217
  - !ruby/object:Gem::Version
218
- version: '2.7'
218
+ version: '3.0'
219
219
  required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  requirements:
221
221
  - - ">="