Class: Screengrab::AndroidEnvironment

Inherits:
Object
  • Object
show all
Defined in:
lib/screengrab/android_environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(android_home, build_tools_version) ⇒ AndroidEnvironment

android_home - the String path to the install location of the Android SDK build_tools_version - the String version of the Android build tools that should be used



8
9
10
11
# File 'lib/screengrab/android_environment.rb', line 8

def initialize(android_home, build_tools_version)
  @android_home = android_home
  @build_tools_version = build_tools_version
end

Instance Attribute Details

#android_homeObject (readonly)

Returns the value of attribute android_home.



3
4
5
# File 'lib/screengrab/android_environment.rb', line 3

def android_home
  @android_home
end

#build_tools_versionObject (readonly)

Returns the value of attribute build_tools_version.



4
5
6
# File 'lib/screengrab/android_environment.rb', line 4

def build_tools_version
  @build_tools_version
end

Instance Method Details

#aapt_pathObject



25
26
27
# File 'lib/screengrab/android_environment.rb', line 25

def aapt_path
  @aapt_path ||= find_aapt(build_tools_path)
end

#adb_pathObject



21
22
23
# File 'lib/screengrab/android_environment.rb', line 21

def adb_path
  @adb_path ||= find_adb(platform_tools_path)
end

#build_tools_pathObject



17
18
19
# File 'lib/screengrab/android_environment.rb', line 17

def build_tools_path
  @build_tools_path ||= find_build_tools(android_home, build_tools_version)
end

#platform_tools_pathObject



13
14
15
# File 'lib/screengrab/android_environment.rb', line 13

def platform_tools_path
  @platform_tools_path ||= find_platform_tools(android_home)
end