Skip to content

Commit 6cad20c

Browse files
author
Laks Castro
authored
Merge pull request #101 from lakscastro/chore/changelog-v0.5.0
Add `v0.5.0` `CHANGELOG.md`
2 parents f619efd + ca468c5 commit 6cad20c

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

CHANGELOG.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
## 0.5.0
2+
3+
This release contains:
4+
5+
- Major breaking changes.
6+
- New API to edit existing files.
7+
- Example project improvements.
8+
- Bug fixes.
9+
10+
To see details, refer to rollup PR [#100](https://github.com/lakscastro/shared-storage/pull/100).
11+
12+
### New
13+
14+
- Added `writeToFile`, `writeToFileAsString` and `writeToFileAsBytes` APIs to allow overwrite existing files by appending (`FileMode.append`) or truncating `FileMode.write` (@jfaltis).
15+
16+
### Breaking changes
17+
18+
- `listFiles` it's now returns a `Stream<DocumentFile>` instead of `Stream<PartialDocumentFile>`.
19+
- `DocumentFile.lastModified` it's now returns a `DateTime?` instead of `Future<DateTime?>` (removed the asynchronous plugin call).
20+
- All `DocumentFile` class fields are now nullable except by `DocumentFile.uri`.
21+
- `createFile` doesn't requires `content` or `bytes` anymore, it's now possible to just create the file reference without defining the file data, it'll be a empty `String` by default.
22+
23+
### Bug fixes
24+
25+
- `DocumentFile.canRead` it's now calling the right API (`canRead`) instead of the similar one (`canWrite`).
26+
- [Fix](https://github.com/lakscastro/shared-storage/pull/100/files#diff-6f516633fcc1095b16ad5e0cc2a2c9711ee903cb115835d703f3c0ccfd6e0d31R38-R62) infinite loading of `getDocumentThumbnail` API when thumbnail is not available.
27+
28+
### Example project
29+
30+
- The example project is no longer dependant of `permission_handler` plugin to request `storage` permission since it's already fully integrated with Storage Access Framework.
31+
- File cards have now a expanded and collapsed state instead of showing all data at once.
32+
- Icon thumbnails were added to `.apk` `image/*`, `video/*`, `text/plain` and `directories` to make easier to see what is the type of the file while navigating between the folders.
33+
- 4 new buttons were added related to `writeToFile` API: _Write to file_ (Overwrite file contents with a predefined string), _Append to file_ (Append a predefined string to the end of the file), _Ease file content_ (Self explanatory: erase it's data but do not delete the file) and _Edit file content_ (Prompt the user with a text field to define the new file content), all buttons requires confirmation since **it can cause data loss**.
34+
- It's now possible to create a file with a custom name through the UI (_Create a custom document_ action button on top center of the file list page).
35+
- File card now shows the decoded uris to fix the visual pollution.
36+
137
## 0.4.2
238

339
Minimal hotfix:
@@ -40,7 +76,7 @@ Minor improvements and bug fixes:
4076

4177
Major release focused on support for `Storage Access Framework`.
4278

43-
### Breaking Changes
79+
### Breaking changes
4480

4581
- `minSdkVersion` set to `19`.
4682
- `getMediaStoreContentDirectory` return type changed to `Uri`.
@@ -50,7 +86,7 @@ Major release focused on support for `Storage Access Framework`.
5086
- `import 'package:shared_storage/media_store.dart' as mediastore;` to enable **Media Store** API.
5187
- `import 'package:shared_storage/shared_storage' as sharedstorage;` if you want to import all above and as a single module (Not recommended because can conflict/override names/methods).
5288

53-
### New Features
89+
### New
5490

5591
See the label [reference here](/docs/Usage/API%20Labeling.md).
5692

0 commit comments

Comments
 (0)