scan/lib/scan/options.rb in fastlane_hotfix-2.165.1 vs scan/lib/scan/options.rb in fastlane_hotfix-2.187.0
- old
+ new
@@ -67,10 +67,15 @@
FastlaneCore::ConfigItem.new(key: :skip_detect_devices,
description: "Should skip auto detecting of devices if none were specified",
default_value: false,
type: Boolean,
optional: true),
+ FastlaneCore::ConfigItem.new(key: :ensure_devices_found,
+ description: "Should fail if devices not found",
+ default_value: false,
+ type: Boolean,
+ optional: true),
# simulator management
FastlaneCore::ConfigItem.new(key: :force_quit_simulator,
env_name: 'SCAN_FORCE_QUIT_SIMULATOR',
description: "Enabling this option will automatically killall Simulator processes before the run",
@@ -267,10 +272,15 @@
env_name: "SCAN_SHOULD_ZIP_BUILD_PRODUCTS",
description: "Should zip the derived data build products and place in output path?",
optional: true,
is_string: false,
default_value: false),
+ FastlaneCore::ConfigItem.new(key: :output_xctestrun,
+ type: Boolean,
+ env_name: "SCAN_OUTPUT_XCTESTRUN",
+ description: "Should provide additional copy of .xctestrun file (settings.xctestrun) and place in output path?",
+ default_value: false),
FastlaneCore::ConfigItem.new(key: :result_bundle,
short_option: "-z",
env_name: "SCAN_RESULT_BUNDLE",
is_string: false,
description: "Should an Xcode result bundle be generated in the output directory",
@@ -409,18 +419,32 @@
FastlaneCore::ConfigItem.new(key: :slack_only_on_failure,
env_name: "SCAN_SLACK_ONLY_ON_FAILURE",
description: "Only post on Slack if the tests fail",
is_string: false,
default_value: false),
+ FastlaneCore::ConfigItem.new(key: :slack_default_payloads,
+ env_name: "SCAN_SLACK_DEFAULT_PAYLOADS",
+ description: "Specifies default payloads to include in Slack messages. For more info visit https://docs.fastlane.tools/actions/slack",
+ optional: true,
+ type: Array),
# misc
FastlaneCore::ConfigItem.new(key: :destination,
short_option: "-d",
env_name: "SCAN_DESTINATION",
description: "Use only if you're a pro, use the other options instead",
is_string: false,
optional: true),
+ FastlaneCore::ConfigItem.new(key: :catalyst_platform,
+ env_name: "SCAN_CATALYST_PLATFORM",
+ description: "Platform to build when using a Catalyst enabled app. Valid values are: ios, macos",
+ type: String,
+ optional: true,
+ verify_block: proc do |value|
+ av = %w(ios macos)
+ UI.user_error!("Unsupported export_method '#{value}', must be: #{av}") unless av.include?(value)
+ end),
FastlaneCore::ConfigItem.new(key: :custom_report_file_name,
env_name: "SCAN_CUSTOM_REPORT_FILE_NAME",
description: "Sets custom full report file name when generating a single report",
deprecated: "Use `--output_files` instead",
conflicting_options: [:output_files],
@@ -434,10 +458,31 @@
default_value: "env NSUnbufferedIO=YES xcodebuild"),
FastlaneCore::ConfigItem.new(key: :cloned_source_packages_path,
env_name: "SCAN_CLONED_SOURCE_PACKAGES_PATH",
description: "Sets a custom path for Swift Package Manager dependencies",
type: String,
- optional: true)
+ optional: true),
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
+ env_name: "SCAN_SKIP_PACKAGE_DEPENDENCIES_RESOLUTION",
+ description: "Skips resolution of Swift Package Manager dependencies",
+ type: Boolean,
+ default_value: false),
+ FastlaneCore::ConfigItem.new(key: :disable_package_automatic_updates,
+ env_name: "SCAN_DISABLE_PACKAGE_AUTOMATIC_UPDATES",
+ description: "Prevents packages from automatically being resolved to versions other than those recorded in the `Package.resolved` file",
+ type: Boolean,
+ default_value: false),
+ FastlaneCore::ConfigItem.new(key: :use_system_scm,
+ env_name: "SCAN_USE_SYSTEM_SCM",
+ description: "Lets xcodebuild use system's scm configuration",
+ optional: true,
+ type: Boolean,
+ default_value: false),
+ FastlaneCore::ConfigItem.new(key: :number_of_retries,
+ env_name: 'SCAN_NUMBER_OF_RETRIES',
+ description: "The number of times a test can fail before scan should stop retrying",
+ type: Integer,
+ default_value: 0)
]
end
end
# rubocop:enable Metrics/ClassLength