Workaround for version detection error in BG

This commit is contained in:
Imran Remtulla
2022-12-14 19:10:05 -05:00
parent 317b5ac83a
commit 481204665c
2 changed files with 7 additions and 3 deletions

View File

@@ -428,8 +428,12 @@ class AppsProvider with ChangeNotifier {
}
Future<bool> doesInstalledAppsPluginWork() async {
bool res =
(await InstalledApps.getAppInfo(obtainiumId)).versionName != null;
bool res = false;
try {
res = (await InstalledApps.getAppInfo(obtainiumId)).versionName != null;
} catch (e) {
//
}
if (!res) {
logs.add(tr('versionCorrectionDisabled'));
}

View File

@@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.8.10+73 # When changing this, update the tag in main() accordingly
version: 0.8.10+74 # When changing this, update the tag in main() accordingly
environment:
sdk: '>=2.18.2 <3.0.0'