Let Retrofit support multiple baseUrl and can be change the baseUrl at runtime
-
Updated
Jul 27, 2017 - Java
Let Retrofit support multiple baseUrl and can be change the baseUrl at runtime
An easy way to change application base url
💪 RetrofitHelper是一个支持配置多个BaseUrl,支持动态改变BaseUrl,动态配置超时时长的Retrofit帮助类
⛵ BaseUrlManager的设计初衷主要用于开发时,有多个环境需要打包APK的场景,通过BaseUrlManager提供的BaseUrl动态设置入口,只需打一次包,即可轻松随意的切换不同的开发环境或测试环境。在打生产环境包时,关闭BaseUrl动态设置入口即可。
Add a description, image, and links to the baseurl topic page so that developers can more easily learn about it.
To associate your repository with the baseurl topic, visit your repo's landing page and select "manage topics."