I want to change part of base url at run time based on site selected by user. How this can be achieved using retrofit.
For eg. Base URL : https://{siteCode}.prod.com/ where siteCode will be site selected by user at run time.
Currenly I have fixed base url in build.gradle.
production {
versionNameSuffix "-prod"
buildConfigField "String", "BASE_URL", "\"https://vh.prod.com/\""
}
How this can be made dynamic using retrofit.