Refactor the existing logic by creating a ConfigurationLoader object, moving all the logic from the fetchOrReturnRemoteConfiguration method to this new object. The public method (fetchOrReturnRemoteConfiguration) remain unchanged to avoid requiring modifications from the clients. This will help us maintain similarities with Android and isolate the logic, allowing us to better implement a mechanism to avoid multiple calls to the v1/configuration endpoint.
Summary of changes
ConfigurationLoader
object, moving all the logic from thefetchOrReturnRemoteConfiguration
method to this new object. The public method (fetchOrReturnRemoteConfiguration
) remain unchanged to avoid requiring modifications from theclients
. This will help us maintain similarities withAndroid
and isolate the logic, allowing us to better implement a mechanism to avoid multiple calls to thev1/configuration
endpoint.Checklist
Authors