Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app/build.gradle correction required #65

Open
mnarasimhan02 opened this issue Oct 23, 2016 · 1 comment
Open

app/build.gradle correction required #65

mnarasimhan02 opened this issue Oct 23, 2016 · 1 comment

Comments

@mnarasimhan02
Copy link

in app/build.gradle file

buildTypes.each {
it.buildConfigField 'String', 'OPEN_WEATHER_MAP_API_KEY', MyOpenWeatherMapApiKey

needs to be corrected.

The MyOpenWeatherMapApiKey should be specified within '"key"' i.e, '"actual_key"'

This may not not be an issue, but needs comment or correction in the source code else the buildconfig.Java will throw an error

@skleeschulte
Copy link

Alternatively it is possible to define MyOpenWeatherMapApiKey in a gradle.properties file. For details see Chapter 12. The Build Environment in the gradle documentation.

This is how the variable is defined in the gradle.properties file:

MyOpenWeatherMapApiKey="apikey"

This can be in the gradle.properties file in the project or in the user home folder (e.g. C:\Users\Bob\.gradle\gradle.properties on Windows).

I totally agree that there should be a comment or some info in the README file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants