lib/dryrun/android_project.rb in dryrun-0.4.4 vs lib/dryrun/android_project.rb in dryrun-0.4.5
- old
+ new
@@ -17,10 +17,12 @@
file_name = 'local.properties'
if File.exist?(file_name)
File.remove(file_name)
end
+
+ system("touch #{file_name}")
end
def remove_application_id
# Open temporary file
tmp = Tempfile.new("extract")
@@ -52,19 +54,18 @@
else
return []
end
end
- # ./gradlew clean installDebug
def install
Dir.chdir @base_path
path, execute_line = self.sample_project
if path == false and execute_line==false
- puts "Couldn't open, sorry!".red
+ puts "Couldn't open the sample project, sorry!".red
exit 1
end
builder = "gradle"
@@ -103,10 +104,9 @@
def sample_project
@modules.each do |child|
full_path = "#{@base_path}/#{child.first}"
@path_to_sample = full_path
- # binding.pry
execute_line = get_execute_line("#{full_path}/src/main/AndroidManifest.xml")
return full_path, execute_line if execute_line
end