Skip to content

Commit f2769e2

Browse files
committed
Using gradle-android-git-version plugin for versioning
1 parent 2ed4096 commit f2769e2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

app/build.gradle

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
apply plugin: 'com.android.application'
1+
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+
}
29

310
android {
411
compileSdkVersion 25
@@ -7,8 +14,8 @@ android {
714
applicationId "saarland.cispa.artist.codelib"
815
minSdkVersion 23
916
targetSdkVersion 25
10-
versionCode 1
11-
versionName "1.0"
17+
versionName androidGitVersion.name()
18+
versionCode androidGitVersion.code()
1219
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1320
}
1421
buildTypes {

0 commit comments

Comments
 (0)