build: Bump dependencies

This commit is contained in:
oSumAtrIX 2023-09-26 05:14:27 +02:00
parent 5838550188
commit 62505f2543
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
8 changed files with 51 additions and 127 deletions

View file

@ -315,18 +315,16 @@ class ManagerAPI {
if (patchBundleFile != null) {
try {
final patchesObject = await PatcherAPI.patcherChannel.invokeMethod(
final String patchesJson = await PatcherAPI.patcherChannel.invokeMethod(
'getPatches',
{
'patchBundleFilePath': patchBundleFile.path,
'cacheDirPath': cacheDir.path,
},
);
final List<Map<String, dynamic>> patchesMap = [];
patchesObject.forEach((patch) {
patchesMap.add(jsonDecode('$patch'));
});
patches = patchesMap.map((patch) => Patch.fromJson(patch)).toList();
final List<dynamic> patchesJsonList = jsonDecode(patchesJson);
patches = patchesJsonList.map((patchJson) => Patch.fromJson(patchJson)).toList();
return patches;
} on Exception catch (e) {
if (kDebugMode) {