Skip to content

Commit

Permalink
[shared_preferences] Exposed SharedPreferencesOptions. (#8530)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrinneal authored Jan 30, 2025
1 parent b66b6d6 commit 4ca1c4d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/shared_preferences/shared_preferences/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.5.1

* Exposes `SharedPreferencesOptions`.

## 2.5.0

* Adds shared preferences devtools extension.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import 'package:shared_preferences/util/legacy_to_async_migration_util.dart';
import 'package:shared_preferences_android/shared_preferences_android.dart';
import 'package:shared_preferences_foundation/shared_preferences_foundation.dart';
import 'package:shared_preferences_linux/shared_preferences_linux.dart';
import 'package:shared_preferences_platform_interface/types.dart';
import 'package:shared_preferences_windows/shared_preferences_windows.dart';

const String stringKey = 'testString';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import 'package:shared_preferences/shared_preferences.dart';
// #docregion migrate
import 'package:shared_preferences/util/legacy_to_async_migration_util.dart';
// #enddocregion migrate
import 'package:shared_preferences_platform_interface/types.dart';

void main() {
runApp(const MyApp());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

export 'package:shared_preferences_platform_interface/types.dart'
show SharedPreferencesOptions;
export 'src/shared_preferences_async.dart';
export 'src/shared_preferences_legacy.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:shared_preferences_platform_interface/types.dart';

import '../shared_preferences.dart';

/// Migrates preferences from the legacy [SharedPreferences] system to
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.5.0
version: 2.5.1

environment:
sdk: ^3.5.0
Expand Down

0 comments on commit 4ca1c4d

Please sign in to comment.