lib/gonative/commands/android/publish.rb in gonative-cli-1.0.4 vs lib/gonative/commands/android/publish.rb in gonative-cli-1.0.5

- old
+ new

@@ -22,17 +22,19 @@ def gradle_files @gradle_files ||= `find . -iname build.gradle`.split("\n") end def version - @version if @version + return @version if @version gradle_files.each do |gradle_file| str = IO.read(gradle_file) - @version = str.match(/versionName\s+"(?<version>.+)"/)[:version] + @version = str.match(/versionName\s+\"(?<version>.+)\"/)[:version] break if @version end + + @version end def create_and_push_tag! unless system("git tag | grep #{version} > /dev/null") system "git add -A && git commit -m \"Releases #{version}.\""