title: Android Gradle - is use splits only for release possible?
body: <p>I want use "splits" by "abi", but only for release build. Is this possible? I try use ext variable and variable by "def" also which is set to false by default. This variable is set to true in buildTypes for releaseWithLog (and release).</p>
  
  <p>But I don't know how Gradle work, because when I add writeln() with test message to "debug", "releaseWithLog" and "release" and run build, all messages are in output, so this confirms me that variable "splitsEnabled" is set to true though I build for debug - and I expect value "false" for debug (and not using splits for debug therefore).</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 19
      buildToolsVersion '20.0.0'
      ext {
          splitsEnabled = false
      }
      defaultConfig {
      ...
      }
      buildTypes {
          debug {
              ...
          }
          releaseWithLog {
              ...
              splitsEnabled = true
          }
          release.initWith(releaseWithLog)
          release {
              ...
          }
      }
      ...
      splits {
          abi {
              println(splitsEnabled)
              enable splitsEnabled
              reset()
              include 'x86', 'armeabi-v7a', 'armeabi'
              exclude 'x86_64', 'mips64', 'arm64-v8a', 'mips'
              universalApk true
          }
      }
      ... 
  </code></pre>