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.
Technical details
Tests
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/2235?work_item_iid=2360
10 commandments of code reviews
Summary by CodeRabbit
-
New Features
- Introduced logging capabilities for HTTP requests using
HttpLoggingInterceptor
.
- Introduced logging capabilities for HTTP requests using
-
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.
- Updated unit tests to include and initialize the new
Edited by Fahim Masud Choudhury