RetrofitUrlManager is an Android networking utility built on top of Retrofit and OkHttp that enables applications to support multiple base URLs and dynamically switch endpoints at runtime. The library simplifies complex networking architectures where apps interact with multiple APIs, environments, or microservices without requiring developers to rebuild Retrofit instances manually. It works by intercepting outgoing requests and replacing or modifying the target domain through a centralized management layer. The project is especially useful in modular Android applications, debugging environments, multi-tenant systems, and apps requiring dynamic API routing. RetrofitUrlManager integrates seamlessly into existing Retrofit workflows with minimal configuration while preserving compatibility with OkHttp interceptors and Retrofit annotations. Its design prioritizes flexibility, runtime configurability, and reduced boilerplate in Android networking stacks.
Features
- Dynamic runtime switching of base URLs
- Support for multiple API domains simultaneously
- Integration with Retrofit and OkHttp workflows
- Centralized request URL management
- Minimal configuration and low boilerplate
- Compatibility with interceptor-based architectures