mirror of
https://github.com/hmalik144/Weather-apps.git
synced 2026-03-18 07:26:04 +00:00
removed api keys from gradle.properties files
Took 52 minutes (cherry picked from commit e54dc864905eb5f8ef9374b9550d7def33fbfd1a) Took 2 minutes
This commit is contained in:
@@ -20,8 +20,11 @@ android {
|
||||
testInstrumentationRunner "com.appttude.h_mal.atlas_weather.application.TestRunner"
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
|
||||
buildConfigField "String", "ParamOne", "${paramOneEndPoint}"
|
||||
buildConfigField "String", "ParamTwo", "${paramTwoEndPoint}"
|
||||
Properties properties = new Properties()
|
||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
|
||||
buildConfigField "String", "ParamOne", "\"${properties.getProperty('WEATHER_API')}\""
|
||||
buildConfigField "String", "ParamTwo", "\"${properties.getProperty('SEARCH_API')}\""
|
||||
}
|
||||
android {
|
||||
sourceSets{
|
||||
|
||||
Reference in New Issue
Block a user