Skip to content

Instantly share code, notes, and snippets.

@jdblack
Created January 13, 2024 11:30
Show Gist options
  • Save jdblack/8d58add53f427d875c5237477eef8350 to your computer and use it in GitHub Desktop.
Save jdblack/8d58add53f427d875c5237477eef8350 to your computer and use it in GitHub Desktop.
...
Android {
buildTypes {
debug {
buildConfigField("String", "API_SERVER", "\"http://10.0.2.2:3000/\"")
}
release {
buildConfigField("String", "API_SERVER", "\"https://www.prod.xxxx.xxx.xxx/\"")
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
create("local") {
initWith(getByName("debug"))
buildConfigField("String", "API_SERVER", "\"http://localhost:3000/\"")
}
}
...
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment