deliver/lib/deliver/options.rb in fastlane-2.64.0.beta.20171101010004 vs deliver/lib/deliver/options.rb in fastlane-2.64.0.beta.20171102010003
- old
+ new
@@ -1,9 +1,10 @@
require 'fastlane_core'
require 'credentials_manager'
module Deliver
+ # rubocop:disable Metrics/ClassLength
class Options
def self.available_options
user = CredentialsManager::AppfileConfig.try_fetch_value(:itunes_connect_id)
user ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
user ||= ENV["DELIVER_USER"]
@@ -109,10 +110,19 @@
default_value: false),
FastlaneCore::ConfigItem.new(key: :automatic_release,
description: "Should the app be automatically released once it's approved?",
is_string: false,
default_value: false),
+ FastlaneCore::ConfigItem.new(key: :auto_release_date,
+ env_name: "DELIVER_AUTO_RELEASE_DATE",
+ description: "Date in milliseconds for automatically releasing on pending approval",
+ is_string: false,
+ optional: true,
+ conflicting_options: [:automatic_release],
+ conflict_block: proc do |value|
+ UI.user_error!("You can't use 'auto_release_date' and '#{value.key}' options together.")
+ end),
FastlaneCore::ConfigItem.new(key: :phased_release,
description: "Enable the phased release feature of iTC",
optional: true,
is_string: false,
default_value: nil),
@@ -320,10 +330,17 @@
optional: true),
FastlaneCore::ConfigItem.new(key: :ignore_language_directory_validation,
env_name: "DELIVER_IGNORE_LANGUAGE_DIRECTORY_VALIDATION",
description: "Ignore errors when invalid languages are found in metadata and screeenshot directories",
default_value: false,
- is_string: false)
+ is_string: false),
+ FastlaneCore::ConfigItem.new(key: :precheck_include_in_app_purchases,
+ env_name: "PRECHECK_INCLUDE_IN_APP_PURCHASES",
+ description: "Should precheck check in-app purchases?",
+ is_string: false,
+ optional: true,
+ default_value: true)
]
end
end
+ # rubocop:enable Metrics/ClassLength
end