lib/calabash-android/operations.rb in calabash-android-0.4.9 vs lib/calabash-android/operations.rb in calabash-android-0.4.10.pre1
- old
+ new
@@ -8,10 +8,11 @@
require 'timeout'
require 'calabash-android/helpers'
require 'calabash-android/wait_helpers'
require 'calabash-android/touch_helpers'
require 'calabash-android/version'
+require 'calabash-android/env'
require 'retriable'
require 'cucumber'
module Calabash module Android
@@ -403,10 +404,10 @@
def adb_command
"#{adb} -s #{serial}"
end
def adb
- if is_windows?
+ if Env.is_windows?
%Q("#{ENV["ANDROID_HOME"]}\\platform-tools\\adb.exe")
else
%Q("#{ENV["ANDROID_HOME"]}/platform-tools/adb")
end
end