Skip to content

Commit ec2445f

Browse files
authored
Adds new Sparkle options (#673)
2 parents 6525d8d + dfba636 commit ec2445f

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Metrics/BlockLength:
7777
- spec/**/shared_examples_*.rb
7878

7979
Metrics/ClassLength:
80-
Max: 300
80+
Max: 350
8181

8282
Metrics/MethodLength:
8383
Max: 150

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _None_
1010

1111
### New Features
1212

13-
_None_
13+
- `upload_build_to_apps_cdn`: Add additional Sparkle meta fields `critical_update` and `phased_rollout_interval` [#673]
1414

1515
### Bug Fixes
1616

lib/fastlane/plugin/wpmreleasetoolkit/actions/common/upload_build_to_apps_cdn.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def self.run(params)
6969
version: params[:version],
7070
build_number: params[:build_number], # Optional: may be nil
7171
minimum_system_version: params[:minimum_system_version], # Optional: may be nil
72+
critical_update: params[:critical_update], # Optional: may be nil
73+
phased_rollout_interval: params[:phased_rollout_interval], # Optional: may be nil
7274
post_status: params[:post_status], # Optional: may be nil
7375
release_notes: params[:release_notes], # Optional: may be nil
7476
sha: params[:sha], # Optional: may be nil
@@ -292,6 +294,18 @@ def self.available_options
292294
optional: true,
293295
type: String
294296
),
297+
FastlaneCore::ConfigItem.new(
298+
key: :critical_update,
299+
description: 'Whether the build is a critical update',
300+
optional: true,
301+
type: Boolean
302+
),
303+
FastlaneCore::ConfigItem.new(
304+
key: :phased_rollout_interval,
305+
description: 'The interval for the phased rollout (in seconds)',
306+
optional: true,
307+
type: Integer
308+
),
295309
FastlaneCore::ConfigItem.new(
296310
key: :release_notes,
297311
description: 'The release notes to show with the build on the blog frontend',

0 commit comments

Comments
 (0)