Ability to provide apk manually.

This commit is contained in:
Nikhil Badyal
2022-12-21 09:47:29 +05:30
parent f44b802de1
commit d098835b21
3 changed files with 21 additions and 2 deletions
+5 -1
View File
@@ -263,8 +263,12 @@ class Downloader(object):
:param version: version to download
:param app: App to download
:return: Version of apk
:return: Version of apk.
"""
if app in self.config.existing_downloaded_apks:
logger.debug("Will not download apk from the internet as it already exist.")
# Returning Latest as I don't know, which version user provided.
return "latest"
if app in self.config.upto_down:
return self.upto_down_downloader(app)
elif app in self.config.apk_pure: