refactor(app,learn): people's files on the device shared in halkyon_app
ADR 0043's recommendation, for Todo's attachments: what Learn had for its files on the device moves into halkyon_app, unchanged but for its names, and Learn uses it from there. - FileCache, DirectoryFileCache (Learn's AssetFileCache): the files by their SHA-256 in a folder of the person's, and which wait to be uploaded. - FileServerGateway, ServerpodFileServerGateway (Learn's AssetServerGateway): halkyon_base's files endpoint, taking the module's caller rather than Learn's client; FileLimitReached, FileRoom. - Their fakes in halkyon_app's testing: MemoryFileCache, FakeFileServerGateway, sha256Of. - SealedFile: the format every app seals a file in (HLKF, version 1), sealing with halkyon_app's ContentCipher; Learn's Privacy seals and opens its files with it, for the same context as before, so every file sealed so far opens as it did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
b7f0aaaec7
commit
5dd7575dd6
1 changed files with 272 additions and 235 deletions
|
|
@ -99,8 +99,11 @@ export 'src/auth/widget/session_gate.dart';
|
|||
export 'src/auth/widget/start_screen.dart';
|
||||
export 'src/auth/widget/wait_screen.dart';
|
||||
export 'src/base/base_client.dart';
|
||||
export 'src/files/file_cache.dart';
|
||||
export 'src/files/file_picker.dart';
|
||||
export 'src/files/file_saver.dart';
|
||||
export 'src/files/file_server_gateway.dart';
|
||||
export 'src/files/serverpod_file_server_gateway.dart';
|
||||
export 'src/handle/bloc/handle_check_cubit.dart';
|
||||
export 'src/handle/model/handle_problem.dart';
|
||||
export 'src/handle/widget/handle_field.dart';
|
||||
|
|
@ -163,6 +166,7 @@ export 'src/password/widget/secret_screen.dart';
|
|||
export 'src/person/person_folders.dart';
|
||||
export 'src/privacy/content_cipher.dart';
|
||||
export 'src/privacy/payload_envelope.dart';
|
||||
export 'src/privacy/sealed_file.dart';
|
||||
export 'src/profile/bloc/public_profile_bloc.dart';
|
||||
export 'src/profile/data/avatar_image.dart';
|
||||
export 'src/profile/data/base_public_profile_gateway.dart';
|
||||
|
|
|
|||
Loading…
Reference in a new issue