Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

feat: store age ratings in DB (issue 2265)

Sayantan Roychowdhury requested to merge 2265-store_age_ratings into main

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

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

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.
  • 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

Merge request reports

Loading