Sha256: e82d779678238dbdfb4e42e4846b0d150796fbe6d1eadae1dae3d7cd0f73f21b

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 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
  UI = FastlaneCore::UI

  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

6 entries across 6 versions & 1 rubygems

Version Path
snapshot-1.8.0 lib/snapshot.rb
snapshot-1.7.0 lib/snapshot.rb
snapshot-1.6.0 lib/snapshot.rb
snapshot-1.5.0 lib/snapshot.rb
snapshot-1.4.4 lib/snapshot.rb
snapshot-1.4.3 lib/snapshot.rb