mirror of
https://github.com/hmalik144/Weather-apps.git
synced 2025-12-10 02:05:20 +00:00
patched properties
Took 7 minutes
This commit is contained in:
@@ -21,7 +21,9 @@ android {
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
|
||||
Properties properties = new Properties()
|
||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
if (project.rootProject.file('local.properties').canRead()) {
|
||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
}
|
||||
|
||||
String weather_key = properties.getProperty('WEATHER_API') ?: ${WEATHER_API}
|
||||
String search_key = properties.getProperty('WEATHER_API') ?: ${SEARCH_API}
|
||||
|
||||
Reference in New Issue
Block a user