fastlane-plugin-wpmreleasetoolkit 13.4.0 → 13.5.0

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: ace179f7cf145c3a8bc0e2b9fa917eaa4654b93fcc9b329ef44013f227111420
4
- data.tar.gz: 1ddd2fe6be0810ec61a6089f44d60ff70599007cb1eb875de32c6df047cbfabe
3
+ metadata.gz: d022bdc136add014c305e7d06dee672e4cd9bb34bcac77ccef7a876f54597c9d
4
+ data.tar.gz: 92bee8e4989223907a6f2e8c8e733219ffba191c49a756e01e60dbbe95a3c913
5
5
  SHA512:
6
- metadata.gz: deba3263e74215fd1b98373940d2eb1b259eda28587e6a730446c596e1559b6a5ad74c3f7260e76d642e6b9ba57d1c5a43f5dd53f64b9d780c4f0400f4c3fc89
7
- data.tar.gz: 17bc9286fe256f21bcfa392bbd48a16d78c5130c1cb8191dc0931516695686eed42ba324a42155eb51a1f66eeefe74b8a44c79a8a24c612f7ad584d84af84f7f
6
+ metadata.gz: 690c4f8a452cceda096e4dc9f3667e9a2fbb44c67f7377a58ba1267f1aa7753c3403cabc279e6f28cc2d4b9ba4da43162433dd14034f944001e6b4038d164595
7
+ data.tar.gz: 669a524c570d9704139a297c54469acfdd86c41da83b1e6754b693e98b27afd24805328199cbe8f449d71e10c7588db12df636c8b08bad8bb86da3b1527a832e
@@ -15,11 +15,35 @@ module Fastlane
15
15
  end
16
16
 
17
17
  class UploadBuildToAppsCdnAction < Action
18
+ # See https://github.a8c.com/Automattic/wpcom/blob/trunk/wp-content/lib/a8c/cdn/src/enums/enum-resource-type.php
18
19
  RESOURCE_TYPE = 'Build'
20
+ # These are from the WordPress.com API, not the Apps CDN plugin
19
21
  VALID_POST_STATUS = %w[publish draft].freeze
20
- VALID_BUILD_TYPES = %w[Alpha Beta Nightly Production Prototype].freeze
21
- VALID_PLATFORMS = ['Android', 'iOS', 'Mac - Silicon', 'Mac - Intel', 'Mac - Any', 'Windows'].freeze
22
- VALID_INSTALL_TYPES = ['Full Install', 'Update'].freeze
22
+ # See https://github.a8c.com/Automattic/wpcom/blob/trunk/wp-content/lib/a8c/cdn/src/enums/enum-build-type.php
23
+ VALID_BUILD_TYPES = %w[
24
+ Alpha
25
+ Beta
26
+ Nightly
27
+ Production
28
+ Prototype
29
+ ].freeze
30
+ # See https://github.a8c.com/Automattic/wpcom/blob/trunk/wp-content/lib/a8c/cdn/src/enums/enum-platform.php
31
+ VALID_PLATFORMS = [
32
+ 'Android',
33
+ 'iOS',
34
+ 'Mac - Silicon',
35
+ 'Mac - Intel',
36
+ 'Mac - Any',
37
+ 'Windows',
38
+ 'Microsoft Store',
39
+ ].freeze
40
+ # See https://github.a8c.com/Automattic/wpcom/blob/trunk/wp-content/lib/a8c/cdn/src/enums/enum-install-type.php
41
+ VALID_INSTALL_TYPES = [
42
+ 'Full Install',
43
+ 'Update',
44
+ ].freeze
45
+ # See https://github.a8c.com/Automattic/wpcom/blob/trunk/wp-content/lib/a8c/cdn/src/enums/enum-visibility.php
46
+ VALID_VISIBILITIES = %i[internal external].freeze
23
47
 
24
48
  def self.run(params)
25
49
  UI.message('Uploading build to Apps CDN...')
@@ -179,6 +203,8 @@ module Fastlane
179
203
  type: String,
180
204
  verify_block: proc do |value|
181
205
  UI.user_error!('Product cannot be empty') if value.to_s.empty?
206
+ # Unlike for other parameters, we don't validate the product value against a list of valid values because we expect this list of
207
+ # supported products to be updated on the backend from time to time and we don't want to have to update the toolkit every time for it.
182
208
  end
183
209
  ),
184
210
  FastlaneCore::ConfigItem.new(
@@ -228,7 +254,7 @@ module Fastlane
228
254
  optional: false,
229
255
  type: Symbol,
230
256
  verify_block: proc do |value|
231
- UI.user_error!('Visibility must be either :internal or :external') unless %i[internal external].include?(value)
257
+ UI.user_error!("Visibility must be one of: #{VALID_VISIBILITIES.map { "`:#{_1}`" }.join(', ')}") unless VALID_VISIBILITIES.include?(value.to_s.downcase.to_sym)
232
258
  end
233
259
  ),
234
260
  FastlaneCore::ConfigItem.new(
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
- VERSION = '13.4.0'
5
+ VERSION = '13.5.0'
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.4.0
4
+ version: 13.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-05 00:00:00.000000000 Z
11
+ date: 2025-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport