Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pratheepchowdhary
Created May 13, 2018 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pratheepchowdhary/020c147f98cd74e08e7a799d24766640 to your computer and use it in GitHub Desktop.
Save pratheepchowdhary/020c147f98cd74e08e7a799d24766640 to your computer and use it in GitHub Desktop.
buildTypes {
release {
minifyEnabled true
shrinkResources true
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable false
jniDebuggable false
renderscriptDebuggable false
pseudoLocalesEnabled false
zipAlignEnabled true
buildConfigField("String", "TMDB_API_KEY", "\"" + getTMDBApiKey() + "\"")
buildConfigField("String", "FACEBOOK_API_KEY", "\"" + getFACEBOOKApiKey() + "\"")
buildConfigField("String", "NEWS_URL", "\"" + getNewsURL() + "\"")
buildConfigField("String", "IMAGE_URL", "\"" + getImageURL() + "\"")
buildConfigField("String", "ARTICLE_URL", "\"" + getArticleUrl() + "\"")
}
debug {
buildConfigField("String", "TMDB_API_KEY", "\"" + getTMDBApiKey() + "\"")
buildConfigField("String", "FACEBOOK_API_KEY", "\"" + getFACEBOOKApiKey() + "\"")
buildConfigField("String", "NEWS_URL", "\"" + getNewsURL() + "\"")
buildConfigField("String", "IMAGE_URL", "\"" + getImageURL() + "\"")
buildConfigField("String", "ARTICLE_URL", "\"" + getArticleUrl() + "\"")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment