# JessYanCoding/RetrofitUrlManager

🔮 Let Retrofit support multiple baseUrl and can be change the baseUrl at runtime (以最简洁的 Api 让 Retrofit 同时支持多个 BaseUrl 以及动态改变 BaseUrl).

Repository: https://github.com/JessYanCoding/RetrofitUrlManager
Canonical: https://ross.abutalabs.com/products/retrofiturlmanager
Language: Java
License: Apache-2.0
License Family: permissive
Topics: retrofit2, baseurl, baseurl-domain, mvparms, arms, retrofit, okhttp, okhttp3
Last push: 2020-04-18T03:44:26+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3335, "days_push": 2328, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2193, forks 305 (observed 2026-08-28T04:06:24.977821+00:00)

## What it is
A lightweight Java/Android library that extends Retrofit to support multiple BaseUrls and dynamic BaseUrl switching at runtime via OkHttp interceptors and a Domain-Name header. It integrates with a single line of configuration when building the OkHttpClient.

## Use cases
- switch api base url at runtime in retrofit
- support multiple base urls in a single retrofit client
- change domain for specific retrofit endpoints dynamically
- override global base url per request in okhttp
- route different api services to different hosts in android app

## When to choose
- you use Retrofit/OkHttp on Android and need per-request or runtime-switchable BaseUrls
- your app talks to several API domains or environments that change while running

## When to avoid
- you don't use Retrofit or OkHttp
- you need a fully maintained library - the project has had no releases since 2020
- you can simply create multiple Retrofit instances instead

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, middleware, routing
- domain: android-tools, mobile-development, apis, developer-tools
- platform: jvm
- tags: retrofit, okhttp, baseurl, runtime-configuration, interceptor, android

## Member repositories
- JessYanCoding/RetrofitUrlManager (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:24.977821+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:47:18.045615+00:00, confidence not recorded.
  - readme: https://github.com/JessYanCoding/RetrofitUrlManager (fetched 2026-08-28T04:06:24.977821+00:00, sha 1f7941bb0f3a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
