Release-Debug Builds for Android Application
问题 In C++ I would normally setup 2 builds - debug and release with each having DEBUG and RELEASE predefined respectively. I would then use these definitions to determine constant values, like logging enabled/disabled, server URL and etc. Right now, in Java/Android I comment out some stuff before building release. That is not a good way, I can tell. I may forget something. What is a common practice for ensuring nothing is forgotten when building a release version (signed) or debug version