Android has a flag called DEBUG in BuildConfig.java. Can someone please explain how is this file created? What is the purpose of having an auto-generated file with a single variable in it?
Is it possible to have something besides DEBUG flag inside this class? What if I want a configuration other than development and release configuration? How can I achieve it?
BuildConfig.java is generated automatically by Android build tools, and is placed into the gen folder.
Read more here:
You can customizing Your Build With Gradle: