Extract HTTP calls logic and API definitions from NetworkManager.
Create a simple HttpClient that can be mocked/replaced. That would enable testing of logic that depends on calls and potentially ease the transition to another HttpClient if needed.
Create API class that handles domain changes and API calls
All changes are made with the intent of keeping NetworkManager's interface the same, with only minimal changes to public methods and no changes in actual behavior.
Extract HTTP calls logic and API definitions from NetworkManager. Create a simple HttpClient that can be mocked/replaced. That would enable testing of logic that depends on calls and potentially ease the transition to another HttpClient if needed. Create API class that handles domain changes and API calls
All changes are made with the intent of keeping NetworkManager's interface the same, with only minimal changes to public methods and no changes in actual behavior.