diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-03 02:29:23 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-03 02:29:23 -0700 |
commit | a87d457e5ad2097ef03bf9763247b3f4cfe37dcb (patch) | |
tree | 5d4876e4a6ddb24450d60eac4fa6c526c3117626 /app | |
parent | 32d8f6d0d26a13f42a749524a1354cea30ff5092 (diff) | |
download | frost-a87d457e5ad2097ef03bf9763247b3f4cfe37dcb.tar.gz frost-a87d457e5ad2097ef03bf9763247b3f4cfe37dcb.tar.bz2 frost-a87d457e5ad2097ef03bf9763247b3f4cfe37dcb.zip |
Use travis build number as basecode
Diffstat (limited to 'app')
-rw-r--r-- | app/build.gradle | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/build.gradle b/app/build.gradle index 99010de6..10d0239e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,4 @@ plugins { - id "com.zoltu.git-versioning" version "3.0.3" id 'com.gladed.androidgitversion' version '0.3.4' } @@ -14,14 +13,14 @@ android { buildToolsVersion project.BUILD_TOOLS androidGitVersion { -// baseCode ext.commitCount() - codeFormat = 'MMNNPPP' + baseCode System.getEnv('TRAVIS_BUILD_NUMBER') ?: 0 + codeFormat = 'MMNNPPXX' prefix 'v' } playAccountConfigs { defaultAccountConfig { - jsonFile = file('./files/gplay-keys.json') + jsonFile = file('../files/gplay-keys.json') } } @@ -32,6 +31,7 @@ android { versionCode androidGitVersion.code() versionName androidGitVersion.name() multiDexEnabled true + playAccountConfig = playAccountConfigs.defaultAccountConfig testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } |