Skip to content

Commit

Permalink
Fixed build.gradle that I accidentally broke
Browse files Browse the repository at this point in the history
  • Loading branch information
alexVinarskis committed Mar 23, 2022
1 parent 2d332b0 commit 4d96082
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@ task clean(type: Delete) {
}

ext {
// gitCommitId = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
// gitCommitCount = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
// baseVersionName = '5.1.1'
//
// versionCode = gitCommitCount
// versionName = "${baseVersionName}.r${gitCommitCount}.${gitCommitId}"
gitCommitId = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
gitCommitCount = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
baseVersionName = '5.1.1'

versionCode = 1
versionName = "1"
versionCode = gitCommitCount
versionName = "${baseVersionName}.r${gitCommitCount}.${gitCommitId}"
}

0 comments on commit 4d96082

Please sign in to comment.