-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
There's major breaking changes when updating to `v0.6.0`, be careful. | ||
|
||
Update your `pubspec.yaml`: | ||
|
||
```yaml | ||
dependencies: | ||
shared_storage: ^0.6.0 | ||
``` | ||
## Import statement | ||
Instead of: | ||
```dart | ||
import 'package:shared_storage/environment.dart' as environment; | ||
import 'package:shared_storage/media_store.dart' as environment; | ||
import 'package:shared_storage/saf.dart' as environment; | ||
``` | ||
|
||
Import as: | ||
|
||
```dart | ||
import 'package:shared_storage/shared_storage' as shared_storage; | ||
``` | ||
|
||
It's now has all APIs available under `shared_storage` key. | ||
|
||
## `getContent()` and `getContentAsString()` | ||
|
||
Wrongly the previous versions required an unused parameter called `destination`: | ||
|
||
```dart | ||
uri.getContentAsString(uri); | ||
uri.getContent(uri); | ||
``` | ||
|
||
It now has been removed: | ||
|
||
```dart | ||
uri.getContentAsString(); | ||
uri.getContent(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters