[Question] Dependencies on shared_preferences
developerspikaway opened this issue · comments
Hi Frideos,
Why the dependency to shared_preference? This dependency will create problems as there are pods and Android packages behind this (unless mistaken).... I would strongly encourage you to split the implementation that depends on it to another package... frideos is something that could make send to other framework (dart web, backend... ) That might not support shared preferences... What do you think?
Alex.
Hello. This library was initially conceived for Flutter only but I could take in consideration to maintain this and create a new package without the widgets and SharedPreferences to be used with dart web. Do you think this can be useful? If the SharedPreferences dependency causes issues I can definitely remove it and make an independent package with the helper class.
Hi @frideosapps sorry I was using my technical account when I posted the question. So yes for me it would make great sens to split everything which stream/bloc related and Shared preferences which is more phone storage helper. I cannot migrate as I have dependecies that depends on older version of the shared preferences... :(
If you could do it that would be awsome :)
The simplest solution could be to let this package as it is, like a sort of an all in one package, and publish the three parts, the dart part (let's say frideos_core/dart), widgets (frideos_flutter) and sharedpreferences (frideos_utils) as new packages, in order to minimize dependencies and issues with other packages. I'm not quite sure it is worth the pain to make a package just for the shared preferences helper class but I'll think about it.
Hello,
I've just released the new packages: