A library that checks for your apps' updates on Google Play, GitHub, Amazon, F-Droid or your own server. API 9+ required.
1.98k
stars
412
forks
source link
Version Number failed to Parse if contains Non-digits characters #24
Closed
khalifavi closed 8 years ago
com.github.javiersantos.appupdater.objects.Version
The version object is using String of the project versionName, which could be anything including alphabet or symbols.
Version@compareTo(Version)
int thisPart = i < thisParts.length ? Integer.parseInt(thisParts[i]) : 0;
digit filter like in replaceAll could be added (ex.
replaceAll("[^0-9?!\\.]","")
)