perf: Reduce amount of network requests

This commit is contained in:
oSumAtrIX
2023-09-29 18:39:07 +02:00
parent 8661d72e45
commit 8ce266bc94
12 changed files with 78 additions and 272 deletions

View File

@ -1,5 +1,4 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:revanced_manager/utils/string.dart';
part 'patch.g.dart';

View File

@ -16,9 +16,7 @@ class PatchedApplication {
required this.patchDate,
this.isRooted = false,
this.isFromStorage = false,
this.hasUpdates = false,
this.appliedPatches = const [],
this.changelog = const [],
});
factory PatchedApplication.fromJson(Map<String, dynamic> json) =>
@ -36,9 +34,7 @@ class PatchedApplication {
DateTime patchDate;
bool isRooted;
bool isFromStorage;
bool hasUpdates;
List<String> appliedPatches;
List<String> changelog;
Map<String, dynamic> toJson() => _$PatchedApplicationToJson(this);