Skip to content

Commit b667fcc

Browse files
author
vlussenburg
committed
retrieve versionName in a more direct way
1 parent 0dab38e commit b667fcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backtrace-library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
apply plugin: 'com.android.library'
55

66
androidGitVersion {
7-
// this is responsible for
7+
// this is the format for generating the versionName
88
// default is %tag%%-count%%-commit%%-branch%%-dirty% - removed %-dirty% because submodules tend to get dirty
99
format '%tag%%-count%%-commit%%-branch%'
1010
}

backtrace-library/publish.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
apply plugin: 'maven-publish'
2020
apply plugin: 'signing'
2121

22-
version = android.defaultConfig.buildConfigFields["VERSION_NAME"].value
22+
version = android.defaultConfig.versionName
2323
group = GROUP
2424

2525
def isReleaseBuild() {

0 commit comments

Comments
 (0)