lib/dryrun/android_project.rb in dryrun-0.7.8 vs lib/dryrun/android_project.rb in dryrun-0.7.9

- old
+ new

@@ -5,17 +5,16 @@ require 'find' require_relative 'dryrun_utils' module Dryrun class AndroidProject - def initialize(path, custom_app_path, custom_module, flavour, device) + def initialize(path, custom_app_path, custom_module, flavour) @custom_app_path = custom_app_path @custom_module = custom_module @base_path = @custom_app_path? File.join(path, @custom_app_path) : path @flavour = flavour - @device = device @settings_gradle_path = settings_gradle_file @main_gradle_file = main_gradle_file check_custom_app_path @@ -123,11 +122,11 @@ clear_app_data puts "Installing #{@package.green}...\n" puts "executing: #{execute_line.green}\n" - @device.shell("#{execute_line}") + DryrunUtils.run_adb("shell #{execute_line}") end def is_gradle_wrapped return false if !File.directory?('gradle/') @@ -153,14 +152,14 @@ def get_uninstall_command "adb uninstall \"#{@package}\"" end def clear_app_data - @device.shell("pm clear #{@package}") + DryrunUtils.run_adb("shell pm clear #{@package}") end def uninstall_application - @device.shell("pm uninstall #{@package}") + DryrunUtils.run_adb("shell pm uninstall #{@package}") end def get_execution_line_command(path_to_sample) manifest_file = get_manifest(path_to_sample)