Skip to content
Snippets Groups Projects
Commit 682928a3 authored by Lennart Goedhart's avatar Lennart Goedhart
Browse files

Base versionCode for build on number of tags, not number of releases

parent df52b357
No related branches found
Tags v0.2.0
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment