Skip to content
Snippets Groups Projects
Commit 39b7af5d authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improved build script

parent cce0c8bc
Branches
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ android {
applicationId = "de.kuschku.quasseldroid_ng"
versionCode = cmd("git", "rev-list", "--count", "HEAD")?.toIntOrNull() ?: 1
versionName = cmd("git", "describe", "--tags", "HEAD") ?: "1.0.0"
versionName = cmd("git", "describe", "--always", "--tags", "HEAD") ?: "1.0.0"
buildConfigField("String", "GIT_HEAD", "\"${cmd("git", "rev-parse", "HEAD") ?: ""}\"")
buildConfigField("long", "GIT_COMMIT_DATE", "${cmd("git", "show", "-s", "--format=%ct") ?: 0}L")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment