build: inject API base URL via buildConfigField instead of hardcoding
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
e90af27e66
commit
9b0253cb6c
@ -18,6 +18,8 @@ android {
|
||||
versionName = "1.0"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
buildConfigField("String", "API_BASE", "\"https://resume.aridgwayweb.com\"")
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@ -32,6 +34,9 @@ android {
|
||||
)
|
||||
}
|
||||
}
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
|
||||
@ -28,7 +28,7 @@ import java.util.concurrent.TimeUnit
|
||||
|
||||
object ApiClient {
|
||||
|
||||
internal const val API_BASE = "https://resume.aridgwayweb.com"
|
||||
internal const val API_BASE = com.example.resbuilder.BuildConfig.API_BASE
|
||||
|
||||
private val gson = Gson()
|
||||
private val cookieStore = mutableListOf<Cookie>()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user