diff options
Diffstat (limited to 'app/build.gradle')
-rw-r--r-- | app/build.gradle | 12 |
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' +} |