Skip to content

Instantly share code, notes, and snippets.

@mega-arbuz
Last active February 9, 2019 22:58
Show Gist options
  • Save mega-arbuz/b55ab39ca27d8d48e47a34f7298251d8 to your computer and use it in GitHub Desktop.
Save mega-arbuz/b55ab39ca27d8d48e47a34f7298251d8 to your computer and use it in GitHub Desktop.
Extract app version and path to APK file
def get_app(release_dir):
output_path = os.path.join(release_dir, 'output.json')
with(open(output_path)) as app_output:
json_data = json.load(app_output)
app_version = json_data[0]['apkInfo']['versionName']
app_file = os.path.join(release_dir, json_data[0]['apkInfo']['outputFile'])
return app_version, app_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment