gdelataillade/alarm

Make use of Hive over SharedPreferences; make the Alarm class abstract and final, or singleton

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Hive is much more efficient and strictly typed than SharedPreferences. You should consider moving to Hive
Also, the Alarm class sometimes confuses me with the (). Simple workaround is to make it 'abstract final', or make it singleton class

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Hi @ShadichyDev

I use hive in my other projects and I think the package is awesome but I chose shared_preferences for the following reasons:

  • more efficient for smaller datasets
  • uses native iOS/Android APIs, so useful if one day I need to access data from native code
  • uses less dependencies

I'm open to discussion, and if you change my mind I will do the migration.