CleverTap / clevertap-android-sdk

CleverTap Android SDK
MIT License
80 stars 74 forks source link

[WIP] Extract API calls from NetworkManager #523

Closed vasct closed 10 months ago

vasct commented 11 months ago

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.

vasct commented 10 months ago

Closing this PR to open a non-wip one.