title: Gradle script to autoversion and include the commit hash in Android
body: <p>I need to write a gradle script to auto version my application on every commit. I need to also include the commit hash as a reference in the application for testers.</p>
  
  <p>I am confused how auto versioning usually work. Can someone explain the autoversioning process?</p>