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

Skip to content

chore: enhance GPlayHttpClient with logging interceptor

Description

Update the GPlayHttpClient class to include a logging interceptor for HTTP requests and responses. The method naming conventions have been improved for clarity and consistency.

Screenshots

We'll be able to see the details of the network requests by GPlayHttpClient without using Timber logs in DEBUG builds.

Screenshot_from_2024-07-15_19-21-03

Technical details

Tests

Issues

https://gitlab.e.foundation/e/os/backlog/-/issues/2235?work_item_iid=2360

10 commandments of code reviews

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

Summary by CodeRabbit

  • New Features
    • Introduced logging capabilities for HTTP requests using HttpLoggingInterceptor.
  • Refactor
    • Replaced HTTP method string literals with defined constants for improved code readability.
  • Tests
    • Updated unit tests to include and initialize the new loggingInterceptor parameter.
Edited by Fahim Masud Choudhury

Merge request reports

Loading