Skip to content

Commit

Permalink
Merge pull request #491 from sussol/#xxx-rc-numbers-in-build-number
Browse files Browse the repository at this point in the history
Allow provisional rc numbers to extend build numbers
  • Loading branch information
Chris-Petty authored Aug 21, 2017
2 parents 585953f + f12dc1e commit 3fdee38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def getAppVersion() {
return packageJson["version"]
}

def (appVersion, provisional) = getAppVersion().tokenize('-')
def (appVersion, provisional) = getAppVersion().tokenize('-rc')
def (major, minor, patch) = appVersion.tokenize('.')
def appVersionCode = ((major.toInteger() * 1000000) + (minor.toInteger() * 1000) + patch.toInteger())
def appVersionCode = ((major.toInteger() * 10000000) + (minor.toInteger() * 100000) + (patch.toInteger() * 100) + (provisional != null ? provisional.toInteger() : 0))

android {
compileSdkVersion 23
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"email": "[email protected]"
},
"name": "mSupplyMobile",
"version": "2.0.0",
"version": "must be in the format ${majorNumber}.${minorNumber}.${patchNumber}-rc${releaseCandidateNumber}",
"version": "2.0.0-rc1",
"private": false,
"license": "MIT",
"description": "Mobile app for use with the mSupply medical inventory control software",
Expand Down

0 comments on commit 3fdee38

Please sign in to comment.