базовая логика скачивания обновлений

This commit is contained in:
2026-03-22 01:04:16 +04:00
parent 4b1cecbefd
commit 73d8798bb9
39 changed files with 2372 additions and 1017 deletions
@@ -0,0 +1,26 @@
import 'client_hash_entry.dart';
final class ClientManifestFile implements ClientHashEntry {
@override
final String path;
@override
final int size;
@override
final String sha256;
const ClientManifestFile({
required this.path,
required this.size,
required this.sha256,
});
factory ClientManifestFile.fromJson(Map<String, dynamic> json) {
return ClientManifestFile(
path: normalizeClientPath(json['path'] as String? ?? ''),
size: (json['size'] as num? ?? 0).toInt(),
sha256: (json['sha256'] as String? ?? '').toLowerCase(),
);
}
}