diff --git a/.rubocop.yml b/.rubocop.yml index 8e09f083e..cd2cb0128 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -77,7 +77,7 @@ Metrics/BlockLength: - spec/**/shared_examples_*.rb Metrics/ClassLength: - Max: 300 + Max: 350 Metrics/MethodLength: Max: 150 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dcbc2113..341d2ca39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ _None_ ### New Features -_None_ +- `upload_build_to_apps_cdn`: Add additional Sparkle meta fields `critical_update` and `phased_rollout_interval` [#673] ### Bug Fixes diff --git a/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/upload_build_to_apps_cdn.rb b/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/upload_build_to_apps_cdn.rb index 9d23b7885..740c50ef3 100644 --- a/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/upload_build_to_apps_cdn.rb +++ b/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/upload_build_to_apps_cdn.rb @@ -69,6 +69,8 @@ def self.run(params) version: params[:version], build_number: params[:build_number], # Optional: may be nil minimum_system_version: params[:minimum_system_version], # Optional: may be nil + critical_update: params[:critical_update], # Optional: may be nil + phased_rollout_interval: params[:phased_rollout_interval], # Optional: may be nil post_status: params[:post_status], # Optional: may be nil release_notes: params[:release_notes], # Optional: may be nil sha: params[:sha], # Optional: may be nil @@ -292,6 +294,18 @@ def self.available_options optional: true, type: String ), + FastlaneCore::ConfigItem.new( + key: :critical_update, + description: 'Whether the build is a critical update', + optional: true, + type: Boolean + ), + FastlaneCore::ConfigItem.new( + key: :phased_rollout_interval, + description: 'The interval for the phased rollout (in seconds)', + optional: true, + type: Integer + ), FastlaneCore::ConfigItem.new( key: :release_notes, description: 'The release notes to show with the build on the blog frontend',