Skip to content

Instantly share code, notes, and snippets.

@jasonwyatt
Created August 2, 2017 17:52
Show Gist options
  • Save jasonwyatt/c03665f9f831d35b7b09d2c1158c6873 to your computer and use it in GitHub Desktop.
Save jasonwyatt/c03665f9f831d35b7b09d2c1158c6873 to your computer and use it in GitHub Desktop.
def getVersionInfo = { File apkFile ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine getAaptPath(), "dump", "badging", apkFile.absoluteFile
standardOutput = stdout
}
return new VersionInfo(apkFile, stdout.toString())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment