Slightly more efficient JSON importing (tiny difference)

This commit is contained in:
Imran Remtulla
2022-10-08 17:31:08 -04:00
parent 07f6d4ad2c
commit 5d8d0de8de
3 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ import 'package:dynamic_color/dynamic_color.dart';
import 'package:device_info_plus/device_info_plus.dart';
const String currentReleaseTag =
'v0.5.7-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
'v0.5.8-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
const String bgUpdateCheckTaskName = 'bg-update-check';

View File

@@ -392,8 +392,8 @@ class AppsProvider with ChangeNotifier {
for (App a in importedApps) {
a.installedVersion =
apps.containsKey(a.id) ? apps[a]?.app.installedVersion : null;
await saveApps([a]);
}
await saveApps(importedApps);
notifyListeners();
return importedApps.length;
}

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.5.7+28 # When changing this, update the tag in main() accordingly
version: 0.5.8+29 # When changing this, update the tag in main() accordingly
environment:
sdk: '>=2.19.0-79.0.dev <3.0.0'