lib/dryrun/android_project.rb in dryrun-0.7.4 vs lib/dryrun/android_project.rb in dryrun-0.7.5
- old
+ new
@@ -14,10 +14,11 @@
@base_path = path
@flavour = flavour
@device = device
@settings_gradle_path = settings_gradle_file
+ @main_gradle_file = main_gradle_file
check_custom_app_path
@modules = find_modules
end
@@ -62,11 +63,15 @@
def settings_gradle_file(path = @base_path)
File.join(path, 'settings.gradle')
end
- def is_valid(settings_path = @settings_gradle_path)
- File.exist?(settings_path)
+ def main_gradle_file(path = @base_path)
+ File.join(path, 'build.gradle')
+ end
+
+ def is_valid(main_gradle_file = @main_gradle_file)
+ File.exist?(main_gradle_file)
end
def find_modules
return [] unless is_valid