In some samples of code BuildConfig.DEBUG equals true,
but in my project that one equals false. Why is it happening?
Unfortunately i didn't find anything about that in Google Firebase official site documentation.
Asked
Active
Viewed 382 times
1 Answers
1
BuildConfig.DEBUG
(in addition to everything in the BuildConfig class) is set by the Android build tools at the time your project is built. It's assigned true when it's a debug build, false for release builds. This value has nothing to do with Firebase or its SDKs.
See also this question.

Doug Stevenson
- 297,357
- 32
- 422
- 441
-
If i understand right, every developer has to edit(or configure) the BuildConfig class in accordance with his own project's requirements. Right? – Stanly T Dec 16 '17 at 11:26
-
1No, it's automatically generated for you by the build tools. – Doug Stevenson Dec 16 '17 at 15:38