fix: update pubspec version

This commit is contained in:
Aunali321
2023-04-21 03:06:59 +05:30
committed by Ushie
parent 3d90bf7588
commit 65da6af3f9
2 changed files with 3 additions and 14 deletions

View File

@ -117,19 +117,8 @@ class HomeViewModel extends BaseViewModel {
Future<bool> hasManagerUpdates() async {
final String? latestVersion = await _managerAPI.getLatestManagerVersion();
final String currentVersion = await _managerAPI.getCurrentManagerVersion();
if (latestVersion != null) {
try {
final int latestVersionInt =
int.parse(latestVersion.replaceAll(RegExp('[^0-9]'), ''));
final int currentVersionInt =
int.parse(currentVersion.replaceAll(RegExp('[^0-9]'), ''));
return latestVersionInt > currentVersionInt;
} on Exception catch (e) {
if (kDebugMode) {
print(e);
}
return false;
}
if (latestVersion != currentVersion) {
return true;
}
return false;
}