Resolve Bug 40432: Inject commit hash into AC build.gradle files at build-time
requested to merge aguestuser/tor-browser-build:bug-40432_inject-commit-hash-into-ac-build-gradle into master
resolves #40432 (closed)
context
- In a3a5306f, we added a patch to the android-components build
process that prevents gradle from invoking
git rev-parse
to obtain the current build's commit hash (becausegit
is absent in our build containers and invoking it will abort the build), instead simply inserting the dummy string "release build" where the hash would have occured - However, having the git hash in build artifacts can be quite useful for debugging later, so we'd like to preserve it, if we can.
changes
- Here, we inject the commit hash into the android-components
build.gradle
files usingsed
andc("abbrev")
as we will soon also do in the fenix build process in 5912606f
Edited by aguestuser