文件最后提交记录最后更新时间
[shared_preferences] Adds Shared preferences as option in shared preferences async android (#7994) Adds the ability to select which Android preferences backend (SharedPreferences or DataStore Preferences) one would like to use. Also adds the ability to pick a file name for the shared preferences backend. fixes https://github.com/flutter/flutter/issues/153300 fixes https://github.com/flutter/flutter/issues/143371 年前
Update repo for 3.32 stable (#9311) Does all of the steps from https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md for the 3.32 stable release (except the first one, as the stable roller has already landed).11 个月前
[various] Update Swift plugins for non-nullable generics (#7742) Updates Swift-based plugins to the current version of Pigeon: - Removes workarounds for previous lack of support for non-nullable generics. - Minor tweaks for other Pigeon changes in intervening versions. These are done as a batch since the Swift plugins are unusual among our plugins in having strong typing changes on the native side, making them easier to do mechanically. Part of https://github.com/flutter/flutter/issues/1558911 年前
[various] Update Swift plugins for non-nullable generics (#7742) Updates Swift-based plugins to the current version of Pigeon: - Removes workarounds for previous lack of support for non-nullable generics. - Minor tweaks for other Pigeon changes in intervening versions. These are done as a batch since the Swift plugins are unusual among our plugins in having strong typing changes on the native side, making them easier to do mechanically. Part of https://github.com/flutter/flutter/issues/1558911 年前
[various] Update Swift plugins for non-nullable generics (#7742) Updates Swift-based plugins to the current version of Pigeon: - Removes workarounds for previous lack of support for non-nullable generics. - Minor tweaks for other Pigeon changes in intervening versions. These are done as a batch since the Swift plugins are unusual among our plugins in having strong typing changes on the native side, making them easier to do mechanically. Part of https://github.com/flutter/flutter/issues/1558911 年前
[shared_preferences] Merge iOS and macOS implementations (#6920) This merges shared_preferences_ios and shared_preferences_macos into a new shared_preferences_foundations that replaces both of those packages, as described in https://github.com/flutter/flutter/issues/117941: - Renames shared_preferences_macos to shared_prefrences_foundation, since the macOS implementation is the Swift implementation, which is what we want to use going forward. - Moves the implementation files to a shared directory (called darwin/ in anticipation of https://github.com/flutter/flutter/pull/115337), adjusting the code and podspec slightly to make it iOS-compatible - Adds iOS support to the example, via flutter create-ing a new iOS example and wiring it up to use the existing native unit test. (This was done instead of moving the example from shared_preferences_ios since it seemed better to have the example be in Swift as well now.) - Removes shared_preferences_ios. Once this lands and has been published, a follow-up will update shared_preferences to use this new package instead of the other two, and the old ones will be marked as deprecated on pub.dev. Part of https://github.com/flutter/flutter/issues/1179413 年前
Update repo for 3.32 stable (#9311) Does all of the steps from https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md for the 3.32 stable release (except the first one, as the stable roller has already landed).11 个月前
[shared_preferences] Merge iOS and macOS implementations (#6920) This merges shared_preferences_ios and shared_preferences_macos into a new shared_preferences_foundations that replaces both of those packages, as described in https://github.com/flutter/flutter/issues/117941: - Renames shared_preferences_macos to shared_prefrences_foundation, since the macOS implementation is the Swift implementation, which is what we want to use going forward. - Moves the implementation files to a shared directory (called darwin/ in anticipation of https://github.com/flutter/flutter/pull/115337), adjusting the code and podspec slightly to make it iOS-compatible - Adds iOS support to the example, via flutter create-ing a new iOS example and wiring it up to use the existing native unit test. (This was done instead of moving the example from shared_preferences_ios since it seemed better to have the example be in Swift as well now.) - Removes shared_preferences_ios. Once this lands and has been published, a follow-up will update shared_preferences to use this new package instead of the other two, and the old ones will be marked as deprecated on pub.dev. Part of https://github.com/flutter/flutter/issues/1179413 年前
[various] Update flutter.dev links to more reliable destinations (#6963) Contributes to https://github.com/flutter/website/issues/10363 by updating to the latest links and updating some links to use new /to/ links that can be updated as needed.1 年前
Update repo for 3.32 stable (#9311) Does all of the steps from https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md for the 3.32 stable release (except the first one, as the stable roller has already landed).11 个月前
README.md

shared_preferences_foundation

The iOS and macOS implementation of shared_preferences.

Usage

This package is endorsed, which means you can simply use shared_preferences normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.