Skip to content

Commit

Permalink
Avoid running out of versionCodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin committed Aug 21, 2017
1 parent c0a364f commit f12dc1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def getAppVersion() {

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

android {
compileSdkVersion 23
Expand Down

0 comments on commit f12dc1e

Please sign in to comment.