Skip to content
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

Remove dependency on shared_preferences_ios #131

Closed
stuartmorgan opened this issue Jan 22, 2023 · 1 comment
Closed

Remove dependency on shared_preferences_ios #131

stuartmorgan opened this issue Jan 22, 2023 · 1 comment

Comments

@stuartmorgan
Copy link

The shared_preferences_ios package has been discontinued, and replaced with shared_preferences_foundation. It looks like the direct dependency on the implementation package is to do background isolate plugin registration. Doing that manually is a legacy approach; ideally you should:

  • replace the manual registration code you have now with DartPluginRegistrant.ensureInitialized(), which will register the Dart code for all plugins.
  • set your minimum supported Flutter version to 3.0 (where that API was introduced).
  • removed the shared_preferences_ios/_android dependencies entirely.

That will avoid this package being bound to implementation details of shared_preferences.

@stuartmorgan
Copy link
Author

This is likely related to #130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants