Zzhaoxin24742shared_preferences
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[shared_preferences] Update iOS/macOS Pigeon (#4668) Updates to the latest version of Pigeon to pick up the change that added the package name to method channels. Avoids the collision with the legacy shared_preferences_ios that causes https://github.com/flutter/flutter/issues/128560. | 3 年前 | |
[ci] Update minimums for 3.13 stable (#4731) - Updates the N-1 and N-2 analysis bot configs to 3.7 and 3.10 - Updates the minimum allowed SDK to 3.7, since that's now the earliest we have any testing for. - Updates all packages to Flutter 3.7/Dart 2.19 as a minimum. - In packages where we hadn't released since the last minimum version bump, I removed the previous line from the #NEXT section to make it less confusing when we do release. Per https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#version this does not update any package versions. | 3 年前 | |
[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/117941 | 3 年前 | |
[shared_preferences] Update iOS/macOS Pigeon (#4668) Updates to the latest version of Pigeon to pick up the change that added the package name to method channels. Avoids the collision with the legacy shared_preferences_ios that causes https://github.com/flutter/flutter/issues/128560. | 3 年前 | |
[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/117941 | 3 年前 | |
[shared_preferences] Adds new clearWithParameters and getAllWithParameters methods to all platforms. (#4262) Adds new clearWithParameters and getAllWithParameters methods. part of https://github.com/flutter/flutter/issues/128948 precursor to https://github.com/flutter/packages/pull/3794 awaiting https://github.com/flutter/packages/pull/4261 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [relevant style guides] and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.) - [x] I signed the [CLA]. - [x] The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences] - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes]. - [x] I updated CHANGELOG.md to add a description of the change, [following repository CHANGELOG style]. - [x] I updated/added relevant documentation (doc comments with ///). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/packages/blob/main/CONTRIBUTING.md [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [relevant style guides]: https://github.com/flutter/packages/blob/main/CONTRIBUTING.md#style [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat [pub versioning philosophy]: https://dart.dev/tools/pub/versioning [exempt from version changes]: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#version-and-changelog-updates [following repository CHANGELOG style]: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#changelog-style [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests | 3 年前 | |
[shared_preferences] Update iOS/macOS Pigeon (#4668) Updates to the latest version of Pigeon to pick up the change that added the package name to method channels. Avoids the collision with the legacy shared_preferences_ios that causes https://github.com/flutter/flutter/issues/128560. | 3 年前 | |
[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/117941 | 3 年前 | |
shared_preferences Signed-off-by: zhaoxin24742 <zhaoxin24742@openvalley.net> | 2 年前 | |
[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/117941 | 3 年前 | |
[various] Clarify endorsement in READMEs (#3404) [various] Clarify endorsement in READMEs | 3 年前 | |
shared_preferences Signed-off-by: zhaoxin24742 <zhaoxin24742@openvalley.net> | 2 年前 |
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.