Class: Screengrab::AndroidEnvironment

Inherits:
Object
  • Object
show all
Defined in:
screengrab/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


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

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


6
7
8
# File 'screengrab/lib/screengrab/android_environment.rb', line 6

def android_home
  @android_home
end

#build_tools_versionObject (readonly)

Returns the value of attribute build_tools_version


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

def build_tools_version
  @build_tools_version
end

Instance Method Details

#aapt_pathObject


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

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

#adb_pathObject


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

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

#build_tools_pathObject


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

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

#platform_tools_pathObject


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

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