Skip to content

Instantly share code, notes, and snippets.

@julianfalcionelli
Last active October 24, 2016 18:15
Show Gist options
  • Save julianfalcionelli/6f3f174feaaf6706dfe5694f2ce1a868 to your computer and use it in GitHub Desktop.
Save julianfalcionelli/6f3f174feaaf6706dfe5694f2ce1a868 to your computer and use it in GitHub Desktop.
buildConfigField
buildTypes {
debug {
buildConfigField “String”, “BASE_URL”, “\”http://api-staging.com/\""
}
release {
buildConfigField “String”, “BASE_URL”, “\”https://api.com/\""
debuggable false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
signingConfig signingConfigs.config
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment