mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 13:05:37 +02:00
build: Bump dependencies
This commit is contained in:
parent
5838550188
commit
62505f2543
8 changed files with 51 additions and 127 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue