We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ed4096 commit f2769e2Copy full SHA for f2769e2
app/build.gradle
@@ -1,4 +1,11 @@
1
-apply plugin: 'com.android.application'
+plugins {
2
+ id 'com.android.application'
3
+ id 'com.gladed.androidgitversion' version '0.4.4'
4
+}
5
+
6
+androidGitVersion {
7
+ prefix 'v' // to match our tag format, e.g. v0.0.1-beta
8
9
10
android {
11
compileSdkVersion 25
@@ -7,8 +14,8 @@ android {
14
applicationId "saarland.cispa.artist.codelib"
15
minSdkVersion 23
16
targetSdkVersion 25
- versionCode 1
- versionName "1.0"
17
+ versionName androidGitVersion.name()
18
+ versionCode androidGitVersion.code()
12
19
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13
20
}
21
buildTypes {
0 commit comments