RetrofitUrlManager
Let Retrofit support multiple baseUrl and can be change the baseUrl at runtime.
中文说明
Overview
Notice
Framework analysis 1
Framework analysis 2
More complete sample
Download
implementation 'me.jessyan:retrofit-url-manager:1.4.0'
Usage
Initialize
// When building OkHttpClient, the OkHttpClient.Builder() is passed to the with() method to initialize the configuration
OkHttpClient = RetrofitUrlManager.getInstance().with(new OkHttpClient.Builder())
评论0
最新资源