You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+38-2Lines changed: 38 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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
+
1
37
## 0.4.2
2
38
3
39
Minimal hotfix:
@@ -40,7 +76,7 @@ Minor improvements and bug fixes:
40
76
41
77
Major release focused on support for `Storage Access Framework`.
42
78
43
-
### Breaking Changes
79
+
### Breaking changes
44
80
45
81
-`minSdkVersion` set to `19`.
46
82
-`getMediaStoreContentDirectory` return type changed to `Uri`.
@@ -50,7 +86,7 @@ Major release focused on support for `Storage Access Framework`.
50
86
-`import 'package:shared_storage/media_store.dart' as mediastore;` to enable **Media Store** API.
51
87
-`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).
52
88
53
-
### New Features
89
+
### New
54
90
55
91
See the label [reference here](/docs/Usage/API%20Labeling.md).
0 commit comments