Sha256: fc47e3066f3d0d9fd5ed5e02afda0f8969a4bac0f41900e398d6b7f153220677

Contents?: true

Size: 1.18 KB

Versions: 660

Compression:

Stored size: 1.18 KB

Contents

require 'fastlane_core/helper'
require 'fastlane/boolean'
require_relative 'detect_values'
require_relative 'dependency_checker'

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

    attr_accessor :project

    attr_accessor :cache

    def config=(value)
      @config = value
      DetectValues.set_additional_default_values
      @cache = {}
    end

    def snapfile_name
      "Snapfile"
    end

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

  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
  UI = FastlaneCore::UI
  ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
  DESCRIPTION = "Automate taking localized screenshots of your iOS and tvOS apps on every device"
  CACHE_DIR = File.join(Dir.home, "Library/Caches/tools.fastlane")
  SCREENSHOTS_DIR = File.join(CACHE_DIR, 'screenshots')
  Boolean = Fastlane::Boolean

  Snapshot::DependencyChecker.check_dependencies

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

Version data entries

660 entries across 660 versions & 5 rubygems

Version Path
fastlane-2.225.0 snapshot/lib/snapshot/module.rb
fastlane-2.224.0 snapshot/lib/snapshot/module.rb
fastlane-2.223.1 snapshot/lib/snapshot/module.rb
fastlane-2.223.0 snapshot/lib/snapshot/module.rb
fastlane-2.222.0 snapshot/lib/snapshot/module.rb
fastlane-2.221.1 snapshot/lib/snapshot/module.rb
fastlane-2.221.0 snapshot/lib/snapshot/module.rb
fastlane-2.220.0 snapshot/lib/snapshot/module.rb
fastlane-2.219.0 snapshot/lib/snapshot/module.rb
fastlane-2.218.0 snapshot/lib/snapshot/module.rb
fastlane-security-patched-2.216.0 snapshot/lib/snapshot/module.rb
fastlane-2.217.0 snapshot/lib/snapshot/module.rb
fastlane-2.216.0 snapshot/lib/snapshot/module.rb
fastlane-2.215.1 snapshot/lib/snapshot/module.rb
fastlane-2.215.0 snapshot/lib/snapshot/module.rb
fastlane-mercafacil-2.214.0 snapshot/lib/snapshot/module.rb
fastlane-2.214.0 snapshot/lib/snapshot/module.rb
fastlane-2.213.0 snapshot/lib/snapshot/module.rb
fastlane-2.212.2 snapshot/lib/snapshot/module.rb
fastlane_pricing_fix-2.212.1 snapshot/lib/snapshot/module.rb