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
No known key found for this signature in database
GPG key ID: 0EF73F1CA38B2D5F
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;
}

View file

@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager
publish_to: 'none'
version: 0.1.0-dev.1
version: 1.0.0+58
environment:
sdk: ">=2.17.5 <3.0.0"