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 cc34964 commit 047e6dcCopy full SHA for 047e6dc
app/build.gradle
@@ -1,14 +1,20 @@
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
android {
10
compileSdkVersion 25
11
buildToolsVersion "27.0.3"
12
defaultConfig {
13
applicationId "saarland.cispa.artist.codelib"
14
minSdkVersion 23
15
targetSdkVersion 25
- versionCode 1
- versionName "1.0"
16
+ versionName androidGitVersion.name()
17
+ versionCode androidGitVersion.code()
18
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
19
}
20
buildTypes {
0 commit comments