lib/snapshot/options.rb in snapshot-1.4.2 vs lib/snapshot/options.rb in snapshot-1.4.3
- old
+ new
@@ -29,33 +29,31 @@
raise "Project file invalid".red unless File.directory?(v)
raise "Project file is not a project file, must end with .xcodeproj".red unless v.include?(".xcodeproj")
end),
FastlaneCore::ConfigItem.new(key: :devices,
description: "A list of devices you want to take the screenshots from",
- is_string: false,
+ short_option: "-d",
+ type: Array,
optional: true,
verify_block: proc do |value|
- raise "Devices must be an array" unless value.kind_of?(Array)
available = FastlaneCore::Simulator.all
value.each do |current|
unless available.any? { |d| d.name.strip == current.strip }
raise "Device '#{current}' not in list of available simulators '#{available.join(', ')}'".red
end
end
end),
FastlaneCore::ConfigItem.new(key: :languages,
description: "A list of languages which should be used",
- is_string: false,
- default_value: [
- 'en-US'
- ]),
+ short_option: "-g",
+ type: Array,
+ default_value: ['en-US']),
FastlaneCore::ConfigItem.new(key: :launch_arguments,
env_name: 'SNAPSHOT_LAUNCH_ARGUMENTS',
description: "A list of launch arguments which should be used",
- is_string: false,
- default_value: [
- ''
- ]),
+ short_option: "-m",
+ type: Array,
+ default_value: ['']),
FastlaneCore::ConfigItem.new(key: :output_directory,
short_option: "-o",
env_name: "SNAPSHOT_OUTPUT_DIRECTORY",
description: "The directory where to store the screenshots",
default_value: output_directory),