fastlane-plugin-auto_version_name 0.3.0 → 0.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c03a05852b393a0b7c8dee4d0a3402f77bc0730cae5d204be093f8df272655e8
|
|
4
|
+
data.tar.gz: 85703702e8bbc9991d432dab68d06b41322b1049caf86ca9e4880b649ed51099
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8465f2faef334286a29aa4c8c3693e40fc356305be8df3228fc99ff95719f5003c4ca0bf753bf8d8f78589a13c8ca310cdda51e2fceafa9cfda44fc61cb6b7b6
|
|
7
|
+
data.tar.gz: 836d28fe548ba473138fe336d3f65442e66e24f9983b4917fb9a43d89a731bc7eaedba24a3fcde0eefc632af058b1573c0ccc8940c665882fa07816cd9ae4969
|
data/README.md
CHANGED
|
@@ -160,6 +160,8 @@ end
|
|
|
160
160
|
|
|
161
161
|
- The base version will always be the largest among the options passed as a parameter. Version comparison uses [Gem::Version](https://ruby-doc.org/stdlib-2.5.0/libdoc/rubygems/rdoc/Gem/Version.html#method-i-3C-3D-3E).
|
|
162
162
|
|
|
163
|
+
- `abort_in_hotfix_reviewing` will stop the fastlane process if App Store Connect is reviewing a hotfix version (status is Waiting fo Review or In Review, and version name's `patch` number is greater than 0). Default value is `true`.
|
|
164
|
+
|
|
163
165
|
## Run tests for this plugin
|
|
164
166
|
|
|
165
167
|
To run both the tests, and code style validation, run
|
|
@@ -73,9 +73,16 @@ module Fastlane
|
|
|
73
73
|
v_name = latest_version.version_string
|
|
74
74
|
v_name_array = v_name.split('.').map { |value| value.to_i }
|
|
75
75
|
|
|
76
|
+
can_abort = params[:abort_in_hotfix_reviewing]
|
|
77
|
+
|
|
76
78
|
if ((v_state == "WAITING_FOR_REVIEW" || v_state == "IN_REVIEW") && v_name_array.last > 0)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
message = "App Store Connect is processing a hotfix! [Version: #{v_name} / Status: #{v_state}]"
|
|
80
|
+
if (can_abort)
|
|
81
|
+
UI.error message
|
|
82
|
+
exit(false)
|
|
83
|
+
else
|
|
84
|
+
UI.important message
|
|
85
|
+
end
|
|
79
86
|
end
|
|
80
87
|
end
|
|
81
88
|
end
|
|
@@ -221,6 +228,14 @@ module Fastlane
|
|
|
221
228
|
ENV["FASTLANE_ITC_TEAM_ID"] = value.to_s
|
|
222
229
|
end
|
|
223
230
|
),
|
|
231
|
+
FastlaneCore::ConfigItem.new(
|
|
232
|
+
key: :abort_in_hotfix_reviewing,
|
|
233
|
+
env_name: "ABORT_IN_HOTFIX_REVIEWING",
|
|
234
|
+
description: "Whether should exit the process if App Store Connect is reviewing a hotfix (iOS platform only)",
|
|
235
|
+
optional: true,
|
|
236
|
+
default_value: true,
|
|
237
|
+
type: Object
|
|
238
|
+
),
|
|
224
239
|
]
|
|
225
240
|
end
|
|
226
241
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-auto_version_name
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- gileadeteixeira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-02-
|
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|