set versionName in Android.mk and build.gradle using `git describe`
We're going to be trying to get this extension into as many ROMs as possible. That means we'll get bug reports from all over from sources we didn't build nor have any control over, so its very important to know which exact version that people are making the bug report on. Using git describe --tags
gives us a nice descriptive version name that will give us a lot of info about the build. For example 0.2-18-g42d0d37
means that the commit is 18 commits after 0.2 with a commit ID of 42d0d37. If 42d0d37 matches something in this repo, we know exactly which code is relevant. If 42d0d37 is not, then we can tell that Privileged Extension was customized in that ROM, but we still have an idea of what the customizations where built on top of because of it is 18 commits after 0.2. If the official repo only has 12 commits after 18, then we know they added 6 commits, etc. etc.
I see no problem requiring git
for building this extension as part of a ROM because bulding a ROM already requires git. Following the prinicipals of "user experience design" and good coding, we should find out what people actually do, not try to imagine all the possibilities that someone could do. The officially supported, documented, widely used practice for working with Android OS source code is repo
. That means git. None of them even mention the possibility of using anything but repo
.