aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-02 10:36:38 -0700
committerAllan Wang <me@allanwang.ca>2017-07-02 10:36:38 -0700
commitb148feff51d7f2805b1af378ad07740bfbeb53a8 (patch)
tree044106601debe01402b3572807ecc1d3f08cf0ba /app/build.gradle
parent0018677886197db4f72d2b49e3d0266526b95435 (diff)
downloadfrost-2e66e6889050dfc29886ecae7c107dab6ffcd487.tar.gz
frost-2e66e6889050dfc29886ecae7c107dab6ffcd487.tar.bz2
frost-2e66e6889050dfc29886ecae7c107dab6ffcd487.zip
Test tagsv1.0.2
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 9b8446ff..c8f40eb8 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,3 +1,7 @@
+plugins {
+ id 'com.gladed.androidgitversion' version '0.3.4'
+}
+
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
@@ -11,8 +15,8 @@ android {
applicationId "${project.APP_GROUP}." + project.APP_ID.toLowerCase()
minSdkVersion Integer.parseInt(project.MIN_SDK)
targetSdkVersion Integer.parseInt(project.TARGET_SDK)
- versionCode Integer.parseInt(project.VERSION_CODE)
- versionName project.VERSION_NAME
+ versionCode androidGitVersion.code()
+ versionName androidGitVersion.name()
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
@@ -125,3 +129,7 @@ dependencies {
transitive = true;
}
}
+
+androidGitVersion {
+ prefix 'v'
+}