Skip to content

Commit bcdf0d7

Browse files
author
andela-akhenda
committed
fix(build): fix invalid gradle command
1 parent 2eae9c2 commit bcdf0d7

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

android/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ allprojects {
2929
}
3030

3131
def getNpmVersion() {
32-
def inputFile = new File("../package.json")
32+
def inputFile = file("../package.json")
33+
// println "[$inputFile]"
3334
def packageJson = new JsonSlurper().parseText(inputFile.text)
3435
return packageJson["version"]
3536
}
@@ -42,9 +43,9 @@ def getNpmVersionArray() { // major [0], minor [1], patch [2]
4243
/* calculated from git commits to give sequential integers */
4344
def getGitVersion() {
4445
def process = "git rev-list master --first-parent --count".execute()
45-
println "[$process]"
46-
println "[$process.text]"
47-
return process.text.toInteger()
46+
// def num = process.text as int
47+
// println "[$num]"
48+
return process.text
4849
}
4950

5051
/* It’s important that versionCode is an integer – so we can’t use semantic versioning here. This is used on the play store to tell which versions come after others – that’s why it’s tied to git commits in getGitVersion */

0 commit comments

Comments
 (0)