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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d022bdc136add014c305e7d06dee672e4cd9bb34bcac77ccef7a876f54597c9d
|
4
|
+
data.tar.gz: 92bee8e4989223907a6f2e8c8e733219ffba191c49a756e01e60dbbe95a3c913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
21
|
-
|
22
|
-
|
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!(
|
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(
|
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
|
+
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-
|
11
|
+
date: 2025-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|