mirror of
https://github.com/hmalik144/Weather-apps.git
synced 2026-10-30 18:34:47 +00:00
patched properties
Took 7 minutes
This commit is contained in:
1 parent
760e06242b
commit
ba2ee7902f
1 file changed
+3
-1
+3
-1
@@ -21,7 +21,9 @@ android {
|
|||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|
||||||
Properties properties = new Properties()
|
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 weather_key = properties.getProperty('WEATHER_API') ?: ${WEATHER_API}
|
||||||
String search_key = properties.getProperty('WEATHER_API') ?: ${SEARCH_API}
|
String search_key = properties.getProperty('WEATHER_API') ?: ${SEARCH_API}
|
||||||
|
|||||||
Reference in new issue
Block a user