lib/dryrun/android_project.rb in dryrun-0.2.2 vs lib/dryrun/android_project.rb in dryrun-0.3.1

- old
+ new

@@ -49,11 +49,10 @@ self.uninstall system("#{builder} clean assembleDebug installDebug") - puts "Installing #{@package.green}...\n" puts "executing: #{execute_line}" system(execute_line) end @@ -62,22 +61,21 @@ @modules.each do |child| full_path = "#{@base_path}#{child.first}" execute_line = get_execute_line("#{full_path}/src/main/AndroidManifest.xml") + return full_path, execute_line if execute_line - if execute_line - #puts "\nTHE SAMPLE IS HERE #{full_path.green}:\n" - #system("tree #{full_path}") - return full_path, execute_line - end - end return false, false end + def get_uninstall_command + "adb uninstall #{@package}" + end + def uninstall - system("adb uninstall #{@package}") + system("#{self.get_uninstall_command} > /dev/null 2>&1") end def get_execute_line(path_to_sample)