Module: Snapshot

Defined in:
lib/snapshot.rb,
lib/snapshot/setup.rb,
lib/snapshot/runner.rb,
lib/snapshot/update.rb,
lib/snapshot/options.rb,
lib/snapshot/version.rb,
lib/snapshot/collector.rb,
lib/snapshot/detect_values.rb,
lib/snapshot/error_handler.rb,
lib/snapshot/reset_simulators.rb,
lib/snapshot/latest_os_version.rb,
lib/snapshot/reports_generator.rb,
lib/snapshot/screenshot_rotate.rb,
lib/snapshot/commands_generator.rb,
lib/snapshot/dependency_checker.rb,
lib/snapshot/screenshot_flatten.rb,
lib/snapshot/test_command_generator.rb,
lib/snapshot/fixes/simulator_zoom_fix.rb,
lib/snapshot/fixes/hardware_keyboard_fix.rb

Defined Under Namespace

Modules: Fixes Classes: Collector, CommandsGenerator, DependencyChecker, DetectValues, ErrorHandler, LatestOsVersion, Options, ReportsGenerator, ResetSimulators, Runner, ScreenshotFlatten, ScreenshotRotate, Setup, TestCommandGenerator, Update

Constant Summary collapse

Helper =

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

FastlaneCore::Helper
UI =
FastlaneCore::UI
ROOT =
Pathname.new(File.expand_path('../..', __FILE__))
VERSION =
"2.0.0".freeze
DESCRIPTION =
"Automate taking localized screenshots of your iOS and tvOS apps on every device"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cacheObject

Returns the value of attribute cache.



28
29
30
# File 'lib/snapshot.rb', line 28

def cache
  @cache
end

.configObject

Returns the value of attribute config.



24
25
26
# File 'lib/snapshot.rb', line 24

def config
  @config
end

.projectObject

Returns the value of attribute project.



26
27
28
# File 'lib/snapshot.rb', line 26

def project
  @project
end

Class Method Details

.kill_simulatorObject



40
41
42
43
# File 'lib/snapshot.rb', line 40

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

.min_xcode7?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/snapshot.rb', line 56

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

.snapfile_nameObject



36
37
38
# File 'lib/snapshot.rb', line 36

def snapfile_name
  "Snapfile"
end

.xcode_versionObject



52
53
54
# File 'lib/snapshot.rb', line 52

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