Support hex in versionCode

Example: https://github.com/Wilm0r/giggity/blob/master/app/src/main/AndroidManifest.xml#L2
This commit is contained in:
Jochen Sprickerhof 2019-11-28 19:06:23 +01:00
parent d0449d9713
commit b83c3c9e18
2 changed files with 16 additions and 4 deletions

View file

@ -3209,10 +3209,14 @@ def parse_xml(path):
def string_is_integer(string):
try:
int(string)
int(string, 0)
return True
except ValueError:
return False
try:
int(string)
return True
except ValueError:
return False
def local_rsync(options, fromdir, todir):