Sha256: 84d5011416031c32fab4bdd26b030d262b774f0eafe99d17923eaafe675ac05f

Contents?: true

Size: 1.22 KB

Versions: 4

Compression:

Stored size: 1.22 KB

Contents

require 'snapshot/version'
require 'snapshot/runner'
require 'snapshot/reports_generator'
require 'snapshot/detect_values'
require 'snapshot/screenshot_flatten'
require 'snapshot/screenshot_rotate'
require 'snapshot/dependency_checker'
require 'snapshot/latest_ios_version'
require 'snapshot/test_command_generator'
require 'snapshot/error_handler'
require 'snapshot/collector'
require 'snapshot/options'
require 'snapshot/update'
require 'snapshot/fixes/simulator_zoom_fix'

require 'fastlane_core'

require 'open3'

module Snapshot
  # Use this to just setup the configuration attribute and set it later somewhere else
  class << self
    attr_accessor :config

    attr_accessor :project

    def config=(value)
      @config = value
      DetectValues.set_additional_default_values
    end

    def snapfile_name
      "Snapfile"
    end

    def kill_simulator
      `killall iOS Simulator &> /dev/null`
    end
  end

  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore

  Snapshot::DependencyChecker.check_dependencies

  def self.xcode_version
    `xcodebuild -version`.match(/Xcode (.*)/)[1]
  end

  def self.min_xcode7?
    xcode_version.split(".").first.to_i >= 7
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
snapshot-1.4.2 lib/snapshot.rb
snapshot-1.4.1 lib/snapshot.rb
snapshot-1.4.0 lib/snapshot.rb
snapshot-1.3.0 lib/snapshot.rb