Skip to content

Commit

Permalink
Amended build script to add offset to automated version code.
Browse files Browse the repository at this point in the history
Needed to account for # commits squashed before open sourcing to
produce a version code that Play Store will accept.
  • Loading branch information
nickbutcher committed Nov 6, 2015
1 parent 3abea4d commit bb0ec67
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 @@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
// query git for the the SHA, Tag and commit count. Use these to automate versioning.
def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
def gitTag = 'git describe --tags'.execute([], project.rootDir).text.trim()
def gitCommitCount =
def gitCommitCount = 100 +
Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())

android {
Expand Down

0 comments on commit bb0ec67

Please sign in to comment.