-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
Add the shared_preferences_tools
extension to the shared_preferences
package
#145433
Comments
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. |
DevTools extension docs: https://pub.dev/packages/devtools_extensions. For a package to provide a DevTools extension, it needs the following content:
So for 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 |
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. |
I think the next steps here would be:
|
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
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 |
Re-opening this issue after this comment from the package author @adsonpleal adsonpleal/shared_preferences_tools#2 (comment). @adsonpleal I think the next steps would be to see if you can remove the third party dependencies that are a concern, and post back here with the list of dependencies that would still be in use (you can just copy and paste the pubspec). @stuartmorgan does that sound good? |
Sounds good. |
@stuartmorgan and @kenzieschmoll I can remove all packages that are not from the dart/flutter team. I'd need to keep only: dependencies:
devtools_extensions: ^0.0.10
devtools_app_shared: ^0.0.5
vm_service: ^13.0.0
dev_dependencies:
mockito: ^5.4.4 If I could keep riverpod the code would be cleaner, though. |
We should not add a dependency on |
No worries, I can just use flutter/dart packages. Soon I'll open a PR and ping you and @kenzieschmoll. |
@kenzieschmoll I've finished the work of adding the extension directly to the But I think I've found a bug for web targets, I've opened a new issue in the devtools repo. |
A DevTools extension for the
shared_preferences
package has been published aspackage:shared_preferences_tools
: https://pub.dev/packages/shared_preferences_tools.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
).Accompanying issue on the
shared_preferences_tools
repo: adsonpleal/shared_preferences_tools#2The text was updated successfully, but these errors were encountered: