Author SHA1 Message Date
armistaceandSisyphus 9b0253cb6c 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>
2026-08-04 23:56:38 +10:00
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -18,6 +18,8 @@ android {
versionName = "1.0" versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
buildConfigField("String", "API_BASE", "\"https://resume.aridgwayweb.com\"")
} }
buildTypes { buildTypes {
@@ -32,6 +34,9 @@ android {
) )
} }
} }
buildFeatures {
buildConfig = true
}
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11
@@ -28,7 +28,7 @@ import java.util.concurrent.TimeUnit
object ApiClient { 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 gson = Gson()
private val cookieStore = mutableListOf<Cookie>() private val cookieStore = mutableListOf<Cookie>()