Sha256: ce932ad28915ad0ae6339979a23f3c802618bacec20db68e91e971d5f0e1cb1a
Contents?: true
Size: 1.24 KB
Versions: 13
Compression:
Stored size: 1.24 KB
Contents
module Snapshot class DetectValues # This is needed as these are more complex default values def self.set_additional_default_values config = Snapshot.config # First, try loading the Snapfile from the current directory config.load_configuration_file(Snapshot.snapfile_name) # Detect the project FastlaneCore::Project.detect_projects(config) Snapshot.project = FastlaneCore::Project.new(config) # Go into the project's folder, as there might be a Snapfile there Dir.chdir(File.expand_path("..", Snapshot.project.path)) do config.load_configuration_file(Snapshot.snapfile_name) end Snapshot.project.select_scheme(preferred_to_include: "UITests") # Devices unless config[:devices] config[:devices] = [] # We only care about a subset of the simulators FastlaneCore::Simulator.all.each do |sim| next if sim.name.include?("iPad") and !sim.name.include?("Retina") # we only need one iPad next if sim.name.include?("6s") # same screen resolution next if sim.name.include?("5s") # same screen resolution next if sim.name.include?("Apple TV") config[:devices] << sim.name end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems