-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[shared_preferences] Adds new clearWithParameters
and getAllWithParameters
methods to platform interface.
#4261
Conversation
clearWithParameters
and getAllWithParameters
methods.clearWithParameters
and getAllWithParameters
methods to platform interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to add temporary // ignore
s for the deprecation warnings in all the other packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the shared_preferences changelog and version bump reverted.
@@ -1,3 +1,7 @@ | |||
## 2.1.3 | |||
|
|||
* Ignores deprecation warnings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't need a release or CHANGELOG note, we just override the check with the labels (until I have time to make the script smarter). Ignores are dev-only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought so, but the bot yelled at me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, that's where the override labels come in. The bot isn't looking at lines of diff yet, only changed files.
auto label is removed for flutter/packages, pr: 4261, due to - The status or check suite repo_checks has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Overriding release metadata check: the changes in |
I think this does need a version and a release, because the flutter_plugins tests check out these repositories, use pub_get to check out their dependencies, and then analyze them. flutter_plugins is now failing on the main flutter CI, and on the monorepo CI. |
I'm not following. Why would we need to publish for tests that are operating on copies of the plugins that are cloned from repo source?
Can you link to a failure? I would expect that to be the result of the pin not having rolled forward, rather than a lack of publishing, in which case the solution is just to update the pin. |
The failing builder is https://ci.chromium.org/ui/p/flutter/builders/prod/Linux%20flutter_plugins a failing build is: https://ci.chromium.org/ui/p/flutter/builders/prod/Linux%20flutter_plugins/12841/overview Another failing builder, on the Dart CI, is https://ci.chromium.org/ui/p/dart/builders/ci.sandbox/flutter-linux-flutter-plugins I think the failure may be due to a pinned package being chosen in the checkout, but then "flutter pub get" is run in that package to fetch its dependencies from the published versions. That is why a package pinned in flutter still needs to be resolvable and correct against its publicly available dependencies. That is what this flutter_plugins analysis test tests. |
That's definitely due to the pinned version in flutter/flutter not having rolled yet. It looks like the auto-roller is due to run in 20 minutes, or we could move the pin forward manually.
I don't know how the Dart CI manages its pin, but that's also checking out a version of flutter/packages from before this PR landed.
I'm aware of that, but we aren't running
They are both resolvable and correct against public dependencies. They (and again, "they" here is older versions of the packages that don't have the changes in this PR) just have analysis warnings. The solution is to update the versions being analyzed to have the |
…llWithParameters` methods to platform interface. (flutter/packages#4261)
OK, I understand now. I didn't see the difference between the pins of packages and of flutter_plugins, and that the package with the deprecations was being rolled separately from the package with the tests. That is why I thought one of the two must be being fetched somehow. |
I don't follow. There's just one pin involved here, not two separate rolls.
The package that introduced the deprecations (the one published in this PR) is being fetched via |
flutter/packages@6b70804...f89ce02 2023-06-27 hansmuller@google.com Updated rfw/test/material_widgets_test.dart for M3 (flutter/packages#4316) 2023-06-27 tarrinneal@gmail.com [shared_preferences] Adds new `clearWithParameters` and `getAllWithParameters` methods to platform interface. (flutter/packages#4261) 2023-06-26 engine-flutter-autoroll@skia.org Roll Flutter from 042c036 to 96a2c05 (60 revisions) (flutter/packages#4313) 2023-06-26 10687576+bparrishMines@users.noreply.github.com [file_selector_android] Create initial Android implementation of the file_selector package (flutter/packages#3814) 2023-06-26 49699333+dependabot[bot]@users.noreply.github.com [in_app_pur]: Bump org.json:json from 20230227 to 20230618 in /packages/in_app_purchase/in_app_purchase/example/android/app (flutter/packages#4244) 2023-06-26 me@ghyeok.io [webview_flutter_wkwebview] Adds the `isInspectable` to `WebKitWebViewController`. (flutter/packages#3984) 2023-06-26 stuartmorgan@google.com [ci] Remove jcenter from legacy project (flutter/packages#4306) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…eters methods to all platforms. (#4262) Adds new `clearWithParameters` and `getAllWithParameters` methods. part of flutter/flutter#128948 precursor to #3794 awaiting #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
Adds new
clearWithParameters
andgetAllWithParameters
methods.part of flutter/flutter#128948
precursor to #3794
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.