lib/sigh/options.rb in sigh-1.10.4 vs lib/sigh/options.rb in sigh-1.11.0
- old
+ new
@@ -10,18 +10,26 @@
[
FastlaneCore::ConfigItem.new(key: :adhoc,
env_name: "SIGH_AD_HOC",
description: "Setting this flag will generate AdHoc profiles instead of App Store Profiles",
is_string: false,
- default_value: false),
- FastlaneCore::ConfigItem.new(key: :skip_install,
- env_name: "SIGH_SKIP_INSTALL",
- description: "By default, the certificate will be added on your local machine. Setting this flag will skip this action",
- is_string: false,
- default_value: false),
+ default_value: false,
+ conflicting_options: [:development],
+ conflict_block: proc do |value|
+ UI.user_error!("You can't enable both :development and :adhoc")
+ end),
FastlaneCore::ConfigItem.new(key: :development,
env_name: "SIGH_DEVELOPMENT",
description: "Renew the development certificate instead of the production one",
+ is_string: false,
+ default_value: false,
+ conflicting_options: [:adhoc],
+ conflict_block: proc do |value|
+ UI.user_error!("You can't enable both :development and :adhoc")
+ end),
+ FastlaneCore::ConfigItem.new(key: :skip_install,
+ env_name: "SIGH_SKIP_INSTALL",
+ description: "By default, the certificate will be added on your local machine. Setting this flag will skip this action",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :force,
env_name: "SIGH_FORCE",
description: "Renew provisioning profiles regardless of its state - to automatically add all devices for ad hoc profiles",