Sha256: 305ced7eede43f1111399e5d01ee6ac47948e0a38c49173e412c372add783a88
Contents?: true
Size: 1.21 KB
Versions: 11
Compression:
Stored size: 1.21 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 # 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
11 entries across 11 versions & 1 rubygems