feat: store age ratings in DB (issue 2265)
Description
Store age ratings in DB table for offline functionality.
Screenshots
Technical details
Tests
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/2265
10 commandments of code reviews
Summary by CodeRabbit
-
New Features
- Enhanced app age limit validation to include content ratings from Google Play.
- Added the ability to fetch and store content ratings in a database.
- Introduced logic to manage NSFW apps and age groups.
-
Refactor
- Simplified package management logic in the
onReceive
method. - Updated methods to use a class-level JSON converter for serialization and deserialization.
- Simplified package management logic in the
-
Bug Fixes
- Corrected validation logic to check content rating validity.
- Fixed issues with canceling downloads by including package names.
-
Chores
- Added new Data Access Objects (DAOs) and data classes for managing content ratings.
Edited by CodeRabbitAI