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

Commit

Permalink
Base versionCode for build on number of tags, not number of releases
Browse files Browse the repository at this point in the history
  • Loading branch information
pazaan committed Jul 24, 2017
1 parent df52b35 commit 682928a
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 @@ -31,7 +31,7 @@ apply plugin: 'realm-android'
def generateVersionCode() {
// We need to get the number of releases directly from GitHub, since Travis
// does a "git clone --depth=50", meaning we don't get all the tags locally.
String url = "https://api.github.com/repos/pazaan/600SeriesAndroidUploader/releases"
String url = "https://api.github.com/repos/pazaan/600SeriesAndroidUploader/tags"
def json = new JsonSlurper().parseText(url.toURL().text)

def numOfTags = json.size()
Expand Down

0 comments on commit 682928a

Please sign in to comment.