I'm defining a particular field in the BuildConfig
for getting the URL
during runtime. So, for each build type, I use a different string:
prod {
buildConfigField "String", "BASE_URL", "\"abc.com\""
}
debug {
buildConfigField "String", "BASE_URL", "\"efg.com\""
}
Is it possible to define a different URL while running the android tests? I tried putting this setting under sourceSets->androidTest
, but it's not accepted.