Skip to content

Instantly share code, notes, and snippets.

View dapacheco's full-sized avatar

David Pacheco dapacheco

  • South Yorkshire
View GitHub Profile
@dapacheco
dapacheco / gist:8ba742c9851e5a8fb59d
Created July 31, 2015 15:12
Add Git SHA to Android BuildConfig.
def gitSha = {
'git rev-parse --short HEAD'.execute().text.trim()
}()
def buildTime() {
def df = new Date().format("yyyyMMddHHmm", TimeZone.getTimeZone("UTC"))
return df
}
android {