- 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> |
||
|---|---|---|
| .. | ||
| encryption | ||
| matrix_api_lite | ||
| msc_extensions | ||
| src | ||
| encryption.dart | ||
| fake_matrix_api.dart | ||
| matrix.dart | ||
| matrix_api_lite.dart | ||