title: Can I set a BuildConfig flag that returns whether or not an apk is built with the `connectedAndroidTest` gradle task?
body: <p>I have parts of my app that I don't want to run if we're running Android unit tests, so I want to surround them with something like</p>
  
  <pre><code>if (!BuildConfig.TESTING) {
    // Code here that I don't want to run during tests.
  }
  </code></pre>
  
  <p>Is it possible to populate this <code>BuildConfig</code> flag depending on whether the <code>connectedAndroidTest</code> gradle task is used? Is this a sane way of approaching this problem?</p>