Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Only use the number of existing tags as the versionCode in builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pazaan committed Jul 24, 2017
1 parent bb2f067 commit df52b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def generateVersionCode() {
String url = "https://api.github.com/repos/pazaan/600SeriesAndroidUploader/releases"
def json = new JsonSlurper().parseText(url.toURL().text)

def numOfTags = json.size() + 1
def numOfTags = json.size()
logger.warn("Generated Version Code: " + numOfTags)
return numOfTags
}
Expand Down

0 comments on commit df52b35

Please sign in to comment.