Method: Fastlane::Helper::AdbHelper#initialize
- Defined in:
- fastlane/lib/fastlane/helper/adb_helper.rb
#initialize(adb_path: nil, adb_host: nil) ⇒ AdbHelper
Returns a new instance of AdbHelper.
21 22 23 24 25 26 27 28 29 |
# File 'fastlane/lib/fastlane/helper/adb_helper.rb', line 21 def initialize(adb_path: nil, adb_host: nil) android_home = ENV['ANDROID_HOME'] || ENV['ANDROID_SDK_ROOT'] || ENV['ANDROID_SDK'] if (adb_path.nil? || adb_path == "adb") && android_home adb_path = File.join(android_home, "platform-tools", "adb") end self.adb_path = Helper.get_executable_path(File.(adb_path)) self.adb_host = adb_host end |