fastlane-plugin-wpmreleasetoolkit 13.2.0 → 13.3.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: b96cfe534c654f80942c7623819cac09dd3241fc5ba706a21c0ed3db1eef26aa
4
- data.tar.gz: 22a84da84041c275c535beac3f347a432a793b4dc3690df855c29771e78b8483
3
+ metadata.gz: 7ee60c5f0a3e9884bf810f436b0a2480805c7e54aa95ac65f7b38e971ab6340e
4
+ data.tar.gz: 12718cd798a67c45d3f056f38aa9f69fa6dff65860936fda4d8d20dfba1e2737
5
5
  SHA512:
6
- metadata.gz: 5d2ef6a47af19fb7370eb894fa9db53d39a1688bc8c862269243702e8f91ebbf68060478653311b5989d46c39ce86e1308675ed4153b9aecb9350e5bc45f1214
7
- data.tar.gz: 6833e063d42b40d2f6aa2f6f918b8ecab482f8fdca7ca28871b9f0b024f8250a7ce21339f2844c8d4ed23ac29783126491db97aa34204fcb790efff7eb3f69e1
6
+ metadata.gz: befe8e1e789fd36d8c4ddf1501c8bcc9e29d33cbe6c2b1541557f2d9e8c1ceadf1f1806673621643692a9d648eeabe69a7575d5fa01c1bce39645bac1b236715
7
+ data.tar.gz: 692c4ad19f812174ebca4322610689539c25c1c973ebbb6b788de5c518145209d9f8a635a5552135b9cbe5f35deb319ba3c731c11115def13cf3c40f9317db43
@@ -19,6 +19,7 @@ module Fastlane
19
19
  VALID_POST_STATUS = %w[publish draft].freeze
20
20
  VALID_BUILD_TYPES = %w[Alpha Beta Nightly Production Prototype].freeze
21
21
  VALID_PLATFORMS = ['Android', 'iOS', 'Mac - Silicon', 'Mac - Intel', 'Mac - Any', 'Windows'].freeze
22
+ VALID_INSTALL_TYPES = ['Full Install', 'Update'].freeze
22
23
 
23
24
  def self.run(params)
24
25
  UI.message('Uploading build to Apps CDN...')
@@ -36,11 +37,13 @@ module Fastlane
36
37
  visibility: params[:visibility].to_s.capitalize,
37
38
  platform: params[:platform],
38
39
  resource_type: RESOURCE_TYPE,
40
+ install_type: params[:install_type],
39
41
  version: params[:version],
40
42
  build_number: params[:build_number], # Optional: may be nil
41
43
  minimum_system_version: params[:minimum_system_version], # Optional: may be nil
42
44
  post_status: params[:post_status], # Optional: may be nil
43
45
  release_notes: params[:release_notes], # Optional: may be nil
46
+ sha: params[:sha], # Optional: may be nil
44
47
  error_on_duplicate: params[:error_on_duplicate] # defaults to false
45
48
  }.compact
46
49
  request_body, content_type = build_multipart_request(parameters: parameters, file_path: file_path)
@@ -210,6 +213,15 @@ module Fastlane
210
213
  UI.user_error!("Build type must be one of: #{VALID_BUILD_TYPES.join(', ')}") unless VALID_BUILD_TYPES.include?(value)
211
214
  end
212
215
  ),
216
+ FastlaneCore::ConfigItem.new(
217
+ key: :install_type,
218
+ description: "The install type for the build. One of: #{VALID_INSTALL_TYPES.join(', ')}",
219
+ default_value: 'Full Install',
220
+ type: String,
221
+ verify_block: proc do |value|
222
+ UI.user_error!("Install type must be one of: #{VALID_INSTALL_TYPES.join(', ')}") unless VALID_INSTALL_TYPES.include?(value)
223
+ end
224
+ ),
213
225
  FastlaneCore::ConfigItem.new(
214
226
  key: :visibility,
215
227
  description: 'The visibility of the build (:internal or :external)',
@@ -256,6 +268,12 @@ module Fastlane
256
268
  optional: true,
257
269
  type: String
258
270
  ),
271
+ FastlaneCore::ConfigItem.new(
272
+ key: :sha,
273
+ description: 'A string representing the release, e.g. the most recent commit hash, cryptographic token, etc',
274
+ optional: true,
275
+ type: String
276
+ ),
259
277
  FastlaneCore::ConfigItem.new(
260
278
  key: :error_on_duplicate,
261
279
  description: 'If true, the action will error if a build matching the same metadata already exists. If false, any potential existing build matching the same metadata will be updated to replace the build with the new file',
@@ -24,10 +24,12 @@ module Fastlane
24
24
  class PromoScreenshots
25
25
  def initialize
26
26
  if $skip_magick
27
- message = "PromoScreenshots feature is currently disabled.\n"
28
- message << "Please, install RMagick if you aim to generate the PromoScreenshots.\n"
29
- message << "'bundle install --with screenshots' should do it if your project is configured for PromoScreenshots.\n"
30
- message << 'Aborting.'
27
+ message = <<~MSG
28
+ PromoScreenshots feature is currently disabled.
29
+ Please, install RMagick if you aim to generate the PromoScreenshots.
30
+ 'bundle install --with screenshots' should do it if your project is configured for PromoScreenshots.
31
+ Aborting.
32
+ MSG
31
33
  UI.user_error!(message)
32
34
  end
33
35
 
@@ -400,10 +402,13 @@ module Fastlane
400
402
  end
401
403
 
402
404
  def create_image(width, height, background = 'transparent')
403
- background.paint.to_hex
405
+ # The paint method we call below modifies the string in place.
406
+ # But if the string is frozen, we need to dup it first, otherwise we'll get a frozen string error.
407
+ working_background = background.frozen? ? background.dup : background
408
+ working_background.paint.to_hex
404
409
 
405
410
  Image.new(width, height) do
406
- self.background_color = background
411
+ self.background_color = working_background
407
412
  end
408
413
  end
409
414
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
- VERSION = '13.2.0'
5
+ VERSION = '13.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-wpmreleasetoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.2.0
4
+ version: 13.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-20 00:00:00.000000000 Z
11
+ date: 2025-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport