Skip to content

Commit

Permalink
[shared_preferences] remove testing section from README (#7410)
Browse files Browse the repository at this point in the history
as requested
fixes flutter/flutter#153108
  • Loading branch information
tarrinneal authored Aug 15, 2024
1 parent 66e98d8 commit c1c8aad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
3 changes: 2 additions & 1 deletion packages/shared_preferences/shared_preferences/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 2.3.2

* Removes outdated testing information from README.
* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
* Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.

Expand Down
12 changes: 0 additions & 12 deletions packages/shared_preferences/shared_preferences/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,6 @@ If you have been using `SharedPreferences` with the default prefix but wish to c
to a new prefix, you will need to transform your current preferences manually to add
the new prefix otherwise the old preferences will be inaccessible.

### Testing

In tests, you can replace the standard `SharedPreferences` implementation with
a mock implementation with initial values. This implementation is in-memory
only, and will not persist values to the usual preference store.

<?code-excerpt "readme_excerpts.dart (Tests)"?>
```dart
final Map<String, Object> values = <String, Object>{'counter': 1};
SharedPreferences.setMockInitialValues(values);
```

### Storage location by platform

| Platform | SharedPreferences | SharedPreferencesAsync/WithCache |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for reading and writing simple key-value pairs.
Wraps NSUserDefaults on iOS and SharedPreferences on Android.
repository: https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+shared_preferences%22
version: 2.3.1
version: 2.3.2

environment:
sdk: ^3.4.0
Expand Down

0 comments on commit c1c8aad

Please sign in to comment.