fastlane-plugin-auto_version_name 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddbe148cf43cc5de663b5e174abbd4fa41fc7b16de9f60309b4881f876830d44
4
- data.tar.gz: b66c2f4364b1215ff620c0153d2685c4ccdbdb738655499d68801860c5c6bb82
3
+ metadata.gz: c03a05852b393a0b7c8dee4d0a3402f77bc0730cae5d204be093f8df272655e8
4
+ data.tar.gz: 85703702e8bbc9991d432dab68d06b41322b1049caf86ca9e4880b649ed51099
5
5
  SHA512:
6
- metadata.gz: d130c38d1751918fd20b07310a3920199690dfe5be85833f6aaa4ea9a7352dc0c159b0297f933d745af9380366b5c9b49d41af4c7d3fa857c30d734a19e1e473
7
- data.tar.gz: ea4b1f6e824c735be2503c7e05cad6974eec9c38667ef645cab0d5d83b0d77f2e0a1a58dd183c42247a138185b35307cd79b23c9ff374a4795e023474e9e06b5
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
- UI.error "App Store Connect is processing a hotfix! Version: #{v_name}; Status: #{v_state}"
78
- exit(false)
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutoVersionName
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2024-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler