match/lib/match/options.rb in fastlane-2.13.0 vs match/lib/match/options.rb in fastlane-2.14.0
- old
+ new
@@ -17,11 +17,11 @@
env_name: "MATCH_GIT_BRANCH",
description: "Specific git branch to use",
default_value: 'master'),
FastlaneCore::ConfigItem.new(key: :type,
env_name: "MATCH_TYPE",
- description: "Create a development certificate instead of a distribution one",
+ description: "Define the profile type, can be #{Match.environments.join(', ')}",
is_string: true,
short_option: "-y",
default_value: 'development',
verify_block: proc do |value|
unless Match.environments.include?(value)
@@ -115,10 +115,21 @@
default_value: false),
FastlaneCore::ConfigItem.new(key: :skip_docs,
env_name: "MATCH_SKIP_DOCS",
description: "Skip generation of a README.md for the created git repository",
is_string: false,
- default_value: false)
+ default_value: false),
+ FastlaneCore::ConfigItem.new(key: :platform,
+ short_option: '-o',
+ env_name: "MATCH_PLATFORM",
+ description: "Set the provisioning profile's platform to work with (i.e. ios, tvos)",
+ is_string: false,
+ default_value: "ios",
+ verify_block: proc do |value|
+ value = value.to_s
+ pt = %w(tvos ios)
+ UI.user_error!("Unsupported platform, must be: #{pt}") unless pt.include?(value)
+ end)
]
end
end
end