Evaluation of storage of app settings #143
Replies: 3 comments 4 replies
-
Imho |
Beta Was this translation helpful? Give feedback.
-
Tusky works with settings in that way that SharedPreferences only used for simple global settings, like proxy settings and SQLite db used for everything that's can be bound to an account. This is not good that there are two ways to work with the settings, it can get kinda confusing. I would store all settings into SQLite database, it's very simple to manage, fast and well-tested solution. For global key-value storage, just a simple table with two string type columns is enough in my opinion. Storing per-account data is more native for relational database nature, of course. SQL isn't that complex as it seems. :) Also having full-fledged database would be useful to store instance data, statuses and accounts, so data would be accessible offline, which is important on phones. In the future, it could be possible to just dump two tables, if a user is migrating from one device to another. |
Beta Was this translation helpful? Give feedback.
-
We've settled on clragon's settings system with adjustments for Riverpod. |
Beta Was this translation helpful? Give feedback.
-
With Kaiteki growing in complexity, Settings are required to meet the customization demands by users. Currently, Kaiteki doesn't really have a solid way of storing settings, or even a good one for that matter. This discussion is for searching for solutions for that problem.
Requirements
Ideas
Solutions
Accessing
shared_preferences
directly from individual widgetsAdvantages
Disadvantages
json_serializable
to enable storing complex data typessqflite
Advantages
Disadvantages
Adopt
e1527
's settings systemAdvantages
Disadvantages
Beta Was this translation helpful? Give feedback.
All reactions