lib/snapshot/options.rb in snapshot-1.13.1 vs lib/snapshot/options.rb in snapshot-1.14.0
- old
+ new
@@ -33,11 +33,11 @@
description: "A list of devices you want to take the screenshots from",
short_option: "-d",
type: Array,
optional: true,
verify_block: proc do |value|
- available = FastlaneCore::Simulator.all
+ available = FastlaneCore::DeviceManager.simulators
value.each do |current|
unless available.any? { |d| d.name.strip == current.strip }
UI.user_error!("Device '#{current}' not in list of available simulators '#{available.join(', ')}'")
end
end
@@ -59,11 +59,11 @@
description: "The directory where to store the screenshots",
default_value: output_directory),
FastlaneCore::ConfigItem.new(key: :ios_version,
description: "By default, the latest version should be used automatically. If you want to change it, do it here",
short_option: "-i",
- default_value: Snapshot::LatestIosVersion.version),
+ optional: true),
FastlaneCore::ConfigItem.new(key: :skip_open_summary,
env_name: 'SNAPSHOT_SKIP_OPEN_SUMMARY',
description: "Don't open the HTML summary after running `snapshot`",
default_value: false,
is_string: false),
@@ -109,10 +109,10 @@
# Everything around building
FastlaneCore::ConfigItem.new(key: :buildlog_path,
short_option: "-l",
env_name: "SNAPSHOT_BUILDLOG_PATH",
description: "The directory where to store the build log",
- default_value: "~/Library/Logs/snapshot"),
+ default_value: "#{FastlaneCore::Helper.buildlog_path}/snapshot"),
FastlaneCore::ConfigItem.new(key: :clean,
short_option: "-c",
env_name: "SNAPSHOT_CLEAN",
description: "Should the project be cleaned before building it?",
is_string: false,