Class: Screengrab::AndroidEnvironment
- Inherits:
-
Object
- Object
- Screengrab::AndroidEnvironment
- Defined in:
- screengrab/lib/screengrab/android_environment.rb
Instance Attribute Summary collapse
-
#android_home ⇒ Object
readonly
Returns the value of attribute android_home.
-
#build_tools_version ⇒ Object
readonly
Returns the value of attribute build_tools_version.
Instance Method Summary collapse
- #aapt_path ⇒ Object
- #adb_path ⇒ Object
- #build_tools_path ⇒ Object
-
#initialize(android_home, build_tools_version) ⇒ AndroidEnvironment
constructor
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.
- #platform_tools_path ⇒ Object
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_home ⇒ Object (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_version ⇒ Object (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_path ⇒ Object
28 29 30 |
# File 'screengrab/lib/screengrab/android_environment.rb', line 28 def aapt_path @aapt_path ||= find_aapt(build_tools_path) end |
#adb_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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 |