Skip to content

Commit c1c8aad

Browse files
authored
[shared_preferences] remove testing section from README (flutter#7410)
as requested fixes flutter#153108
1 parent 66e98d8 commit c1c8aad

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

packages/shared_preferences/shared_preferences/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 2.3.2
22

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

packages/shared_preferences/shared_preferences/README.md

-12
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,6 @@ If you have been using `SharedPreferences` with the default prefix but wish to c
183183
to a new prefix, you will need to transform your current preferences manually to add
184184
the new prefix otherwise the old preferences will be inaccessible.
185185

186-
### Testing
187-
188-
In tests, you can replace the standard `SharedPreferences` implementation with
189-
a mock implementation with initial values. This implementation is in-memory
190-
only, and will not persist values to the usual preference store.
191-
192-
<?code-excerpt "readme_excerpts.dart (Tests)"?>
193-
```dart
194-
final Map<String, Object> values = <String, Object>{'counter': 1};
195-
SharedPreferences.setMockInitialValues(values);
196-
```
197-
198186
### Storage location by platform
199187

200188
| Platform | SharedPreferences | SharedPreferencesAsync/WithCache |

packages/shared_preferences/shared_preferences/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for reading and writing simple key-value pairs.
33
Wraps NSUserDefaults on iOS and SharedPreferences on Android.
44
repository: https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+shared_preferences%22
6-
version: 2.3.1
6+
version: 2.3.2
77

88
environment:
99
sdk: ^3.4.0

0 commit comments

Comments
 (0)