Last active
February 9, 2019 22:58
-
-
Save mega-arbuz/b55ab39ca27d8d48e47a34f7298251d8 to your computer and use it in GitHub Desktop.
Extract app version and path to APK file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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