title: BuildConfig.DEBUG always false when building library projects with gradle
body: <p>BuildConfig.DEBUG is not working (= logically set to false) when I run my app in debug mode.
  I use Gradle to build. I have a library project where I do this check. BuildConfig.java looks like this in the build debug folder:</p>
  
  <pre><code>/** Automatically generated the file. DO NOT MODIFY */
  package common.myProject;
  
  public final class BuildConfig {
      public static final boolean DEBUG = Boolean.parseBoolean("true");
  
  }
  </code></pre>
  
  <p>and in the release folder:</p>
  
  <pre><code>public static final boolean DEBUG = false;
  </code></pre>
  
  <p>both in the library project and in the application project.</p>
  
  <p>I tried to get around this by checking a variable which is set a class of my project. This class inherits from the library and starts on startup.</p>
  
  <pre><code>&lt;application
          android:name=".MyPrj" ...
  </code></pre>
  
  <p>This leads to another problem: is that I use my DEBUG variable in a DataBaseProvider which runs before the application class, and it will not run properly due to this bug.</p>