Skip to content
Snippets Groups Projects
Verified Commit d9d86206 authored by akwizgran's avatar akwizgran
Browse files

Make build timestamp command compatible with old versions of Git.

parent 4df335eb
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,7 @@ android {
buildConfigField "String", "GitHash",
"\"${getStdout(['git', 'rev-parse', '--short=7', 'HEAD'], 'No commit hash')}\""
buildConfigField "Long", "BuildTimestamp",
"${getStdout(['git', 'log', '-n', '1', '--date=unix', '--format=%cd'], 0)}000L"
"${getStdout(['git', 'log', '-n', '1', '--format=%ct'], 0)}000L"
}
buildTypes {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment