You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add the shared_preferences_tools extension to the shared_preferences package #145433
To bring the most value to users of the shared_preferences package, we should consider moving this extension into the package it is intended to be used with (package:shared_preferences).
For a package to provide a DevTools extension, it needs the following content:
package_foo/
extension/
devtools/
build/ # precompiled assets of the extension flutter web app
config.yaml. # configuration file that tells DevTools how to display the extension
Developing the source code outside of the flutter/packages repo could make this a bit odd to maintain, so we may want to bring the source code into this repo as well, even if we don't publish it or roll it into google3.
Is the concern about bringing new dependencies into the Flutter SDK that are not allowed? This wouldn't be an issue since shared_preferences_tools_devtools_extension would not be published nor depended upon by any other package.
Developing the source code outside of the flutter/packages repo could make this a bit odd to maintain, so we may want to bring the source code into this repo as well, even if we don't publish it or roll it into google3.
I would definitely not want to be shipping precompiled output of code that we don't control. That has significant chain of trust and maintainability issues.
Is the concern about bringing new dependencies into the Flutter SDK that are not allowed? This wouldn't be an issue since shared_preferences_tools_devtools_extension would not be published nor depended upon by any other package.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
@kenzieschmoll I've finished the work of adding the extension directly to the shared_preferences package. I'm just doing some small polishings and I'll open a PR.
But I think I've found a bug for web targets, I've opened a new issue in the devtools repo.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
stuartmorgan-g commentedon Mar 21, 2024
I'm not very familiar with the extension structure; I assume this would be both https://github.com/adsonpleal/shared_preferences_tools/tree/main/packages/shared_preferences_tools and https://github.com/adsonpleal/shared_preferences_tools/tree/main/packages/shared_preferences_tools_devtools_extension? The latter has some significant third-party dependencies.
kenzieschmoll commentedon Mar 21, 2024
DevTools extension docs: https://pub.dev/packages/devtools_extensions.
For a package to provide a DevTools extension, it needs the following content:
So for
shared_preferencesto provide a DevTools extension, only the pre-compiled Flutter web app for (https://github.com/adsonpleal/shared_preferences_tools/tree/main/packages/shared_preferences_tools_devtools_extension) would need to be included inshared_preferences/extension/devtools/build, not the source code itself. That being said, we would still want to review the code before shipping the extension with a first party package.Developing the source code outside of the flutter/packages repo could make this a bit odd to maintain, so we may want to bring the source code into this repo as well, even if we don't publish it or roll it into google3.
Is the concern about bringing new dependencies into the Flutter SDK that are not allowed? This wouldn't be an issue since
shared_preferences_tools_devtools_extensionwould not be published nor depended upon by any other package.stuartmorgan-g commentedon Mar 21, 2024
I would definitely not want to be shipping precompiled output of code that we don't control. That has significant chain of trust and maintainability issues.
https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#dependencies summarizes the concerns with dependencies in flutter/packages.
stuartmorgan-g commentedon Apr 2, 2024
I think the next steps here would be:
github-actions commentedon Apr 23, 2024
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.
github-actions commentedon May 7, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.8 remaining items
adsonpleal commentedon May 15, 2024
No worries, I can just use flutter/dart packages. Soon I'll open a PR and ping you and @kenzieschmoll.
adsonpleal commentedon May 16, 2024
@kenzieschmoll I've finished the work of adding the extension directly to the
shared_preferencespackage. I'm just doing some small polishings and I'll open a PR.But I think I've found a bug for web targets, I've opened a new issue in the devtools repo.
[shared_preferences] Add shared preferences devtools (#6749)
[shared_preferences] Add shared preferences devtool (#8322)
[shared_preferences] Add shared preferences devtool (#8494)
adsonpleal commentedon Jan 30, 2025
@kenzieschmoll now that flutter/packages#8531 has finally landed and this is available in
shared_preferences 2.5.0we can close this issue.kenzieschmoll commentedon Jan 30, 2025
Thank you for all your work to make this happen! @adsonpleal @stuartmorgan @tarrinneal
github-actions commentedon Feb 14, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.