Skip to content

[shared_preferences] Fix JSON parsing issue with _decodeValue #8211

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

Merged
merged 6 commits into from
Feb 18, 2025

Conversation

Dan-Crane
Copy link
Contributor

@Dan-Crane Dan-Crane commented Dec 3, 2024

[shared_preferences] Fix JSON parsing issue with getAllWithParameters

this is a restored PR #5813
Fixes flutter/flutter#156574

Pre-launch Checklist

@Dan-Crane Dan-Crane force-pushed the fix-shared-pref-web-parsing branch 2 times, most recently from 17b9578 to daf7473 Compare December 4, 2024 08:38
@Dan-Crane Dan-Crane force-pushed the fix-shared-pref-web-parsing branch from daf7473 to be1e837 Compare December 5, 2024 04:18
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor fixes, assuming @ditman is happy with it.

@Dan-Crane Dan-Crane force-pushed the fix-shared-pref-web-parsing branch 4 times, most recently from efbb8a4 to 768cdd6 Compare December 11, 2024 05:11
@Dan-Crane Dan-Crane force-pushed the fix-shared-pref-web-parsing branch 2 times, most recently from c544578 to e291e66 Compare December 26, 2024 09:01
@Dan-Crane
Copy link
Contributor Author

@ditman can you please watch this PR when you have time?

@Dan-Crane
Copy link
Contributor Author

@ditman hi! Happy new year!:) Can you see the PR, please?

@Dan-Crane Dan-Crane force-pushed the fix-shared-pref-web-parsing branch from e291e66 to fb2a65b Compare January 15, 2025 06:07
@Dan-Crane
Copy link
Contributor Author

@stuartmorgan Hello!
Can you please help with this PR?

@stuartmorgan-g
Copy link
Contributor

@stuartmorgan Hello! Can you please help with this PR?

I'm not sure what you are asking exactly; I've already reviewed it. What help are you looking for from me?

@stuartmorgan-g stuartmorgan-g added the triage-web Should be looked at in web triage label Jan 15, 2025
@Dan-Crane Dan-Crane force-pushed the fix-shared-pref-web-parsing branch from fb2a65b to 3a54a90 Compare January 27, 2025 11:29
Copy link
Contributor

@tarrinneal tarrinneal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine as is. @stuartmorgan if you'd like to merge it without @ditman taking a look, I'm ok with that as well.

@san-smith

This comment was marked as off-topic.

@stuartmorgan-g
Copy link
Contributor

I think this is fine as is. @stuartmorgan if you'd like to merge it without @ditman taking a look, I'm ok with that as well.

This is straightforward enough that our reviews are sufficient.

@stuartmorgan-g stuartmorgan-g added autosubmit Merge PR when tree becomes green via auto submit App and removed triage-web Should be looked at in web triage labels Feb 18, 2025
@auto-submit auto-submit bot merged commit cb4fb13 into flutter:main Feb 18, 2025
77 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 18, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Feb 18, 2025
flutter/packages@8542af3...cb4fb13

2025-02-18 56475207+Dan-Crane@users.noreply.github.com
[shared_preferences] Fix JSON parsing issue with _decodeValue
(flutter/packages#8211)
2025-02-18 pawel.jakubowski@leancode.pl [camera_avfoundation] Migrate
tests to Swift - part 2 (flutter/packages#8613)
2025-02-18 stuartmorgan@google.com [google_sign_in] Adopt task queues
for Android (flutter/packages#8622)
2025-02-17 engine-flutter-autoroll@skia.org Roll Flutter from
892f9c1 to e8f34a9 (71 revisions) (flutter/packages#8614)

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 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://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
androidseb pushed a commit to androidseb/packages that referenced this pull request Jun 8, 2025
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: shared_preferences platform-web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[shared_preferences] On Web, exception on initialization when a stored value is not valid JSON
4 participants