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

Skip to content

1401 refactor network layer

Description

We have implemented generic networking layer for the App Lounge project. The networking layer handles API fetching data and parse the response. The same Retofit implementation is useful for other networking use-case like Google User Login etc.

Technical details

The networking module consists of RetrofitFetching, FetchError, and RetrofitConfig classes.

RetrofirFetching: This class is responsible for making network calls and transforming responses into success or failure based on the response/failure type.

RetofitConfig: Retrofit configuration is managed in this class implementation, which consists of OKHttp Builder configuration as well as a logger.

Tests

We can add test cases with respect to the networking layer but actual use-case tests will be covered in the scenario-based MR.

Issues

https://gitlab.e.foundation/e/os/backlog/-/issues/1401

10 commandments of code reviews

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

Merge request reports

Loading