matrix-dart-sdk/lib
The one with the braid 4ba6e25689
fix: dart:io import in matrix_sdk_database
- removes `Directory` field in high-level `MatrixSdkDatabase`
- migrates `Directory fileStoragePath` to `Uri fileStorageLocation`
- makes file operations in `MatrixSdkDatabase` conditional on
  `dart.libraries.js_util`
- implements a tiny stub of the file operations used in `MatrixSdkDatabase`

It seems like the Flutter tool can compile despite these imports. Sadly
the Dart standalone dart2js compiler doesn't reach there. While
refactorying the code, I decided it's likely cleaner to have a `Uri` as
storage location provider than using some fake directory or String as
relacement.

The advantage of a `Uri` at this place is the explicit `Uri.directory`
constructor available to ensure type and encoding safe directory
locations supporting both Windows and *nix.

Additionally, admitted, that's an edge-case, one could even
easily extend the use of a `Uri` based descriptor to support future
storage location accesses (e.g. IPFS or custom schemes for e.g. local
web browser based file system APIs). Using a `Uri`, one would only need
to override the three methods making use of the `fileStorageLocation`
property to handle different Uri schemes too.

Signed-off-by: The one with the braid <info@braid.business>
2024-04-12 08:50:44 +02:00
..
encryption fix: Typo in upload key json object creates invalid objects 2024-03-21 08:22:15 +01:00
matrix_api_lite chore: add api lite readme 2024-03-25 17:46:59 +05:30
msc_extensions feat: add sendAudioEvent and isVoiceMessage method to msc extensions 2024-04-11 14:12:54 +05:30
src fix: dart:io import in matrix_sdk_database 2024-04-12 08:50:44 +02:00
encryption.dart refactor: nullsafe encryption 2021-09-30 12:58:37 +00:00
fake_matrix_api.dart chore: merge api_lite and dart sdk 2024-03-25 17:22:05 +05:30
matrix.dart chore: merge api_lite and dart sdk 2024-03-25 17:22:05 +05:30
matrix_api_lite.dart chore: merge api_lite and dart sdk 2024-03-25 17:22:05 +05:30