feat: fix list contributors and add patched apps changelog (wip)

This commit is contained in:
Alberto Ponces
2022-08-26 02:01:53 +01:00
parent bfbcb510c4
commit 45f4a5b207
7 changed files with 88 additions and 69 deletions

View File

@ -32,5 +32,6 @@ class ContributorsViewModel extends BaseViewModel {
ghOrg,
managerRepo,
);
notifyListeners();
}
}

View File

@ -65,9 +65,9 @@ class HomeViewModel extends BaseViewModel {
if (latestVersion != null) {
try {
int latestVersionInt =
int.parse(latestVersion.replaceFirst('v', '').replaceAll('.', ''));
int.parse(latestVersion.replaceAll(RegExp('[^0-9]'), ''));
int currentVersionInt =
int.parse(currentVersion.replaceFirst('v', '').replaceAll('.', ''));
int.parse(currentVersion.replaceAll(RegExp('[^0-9]'), ''));
return latestVersionInt > currentVersionInt;
} on Exception {
return false;