Skip to content

Commit 047e6dc

Browse files
committed
Using gradle-android-git-version for versioning
1 parent cc34964 commit 047e6dc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

app/build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
apply plugin: 'com.android.application'
1+
plugins {
2+
id 'com.android.application'
3+
id 'com.gladed.androidgitversion' version '0.4.4'
4+
}
25

6+
androidGitVersion {
7+
prefix 'v' // to match our tag format, e.g. v0.0.1-beta
8+
}
39
android {
410
compileSdkVersion 25
511
buildToolsVersion "27.0.3"
612
defaultConfig {
713
applicationId "saarland.cispa.artist.codelib"
814
minSdkVersion 23
915
targetSdkVersion 25
10-
versionCode 1
11-
versionName "1.0"
16+
versionName androidGitVersion.name()
17+
versionCode androidGitVersion.code()
1218
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1319
}
1420
buildTypes {

0 commit comments

Comments
 (0)