class Snapshot::SimulatorLauncherConfiguration

Attributes

add_photos[RW]
add_videos[RW]
app_identifier[RW]
clean[RW]
concurrent_simulators[RW]

xcode 9

concurrent_simulators?[RW]

xcode 9

dark_mode[RW]
devices[RW]
disable_slide_to_type[RW]
erase_simulator[RW]
headless[RW]
languages[RW]

both

launch_args_set[RW]

runner

localize_simulator[RW]
number_of_retries[RW]

xcode 8

output_directory[RW]
output_simulator_logs[RW]
override_status_bar[RW]
override_status_bar_arguments[RW]
reinstall_app[RW]
stop_after_first_error[RW]

Public Class Methods

new(snapshot_config: nil) click to toggle source
# File snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb, line 32
def initialize(snapshot_config: nil)
  @languages = snapshot_config[:languages]
  @devices = snapshot_config[:devices]
  @add_photos = snapshot_config[:add_photos]
  @add_videos = snapshot_config[:add_videos]
  @clean = snapshot_config[:clean]
  @erase_simulator = snapshot_config[:erase_simulator]
  @headless = snapshot_config[:headless]
  @localize_simulator = snapshot_config[:localize_simulator]
  @dark_mode = snapshot_config[:dark_mode]
  @reinstall_app = snapshot_config[:reinstall_app]
  @app_identifier = snapshot_config[:app_identifier]
  @number_of_retries = snapshot_config[:number_of_retries]
  @stop_after_first_error = snapshot_config[:stop_after_first_error]
  @output_simulator_logs = snapshot_config[:output_simulator_logs]
  @output_directory = snapshot_config[:output_directory]
  @concurrent_simulators = snapshot_config[:concurrent_simulators]
  @disable_slide_to_type = snapshot_config[:disable_slide_to_type]
  @override_status_bar = snapshot_config[:override_status_bar]
  @override_status_bar_arguments = snapshot_config[:override_status_bar_arguments]

  launch_arguments = Array(snapshot_config[:launch_arguments])
  # if more than 1 set of arguments, use a tuple with an index
  if launch_arguments.count == 0
    @launch_args_set = [[""]]
  elsif launch_arguments.count == 1
    @launch_args_set = [launch_arguments]
  else
    @launch_args_set = launch_arguments.map.with_index { |e, i| [i, e] }
  end
end