title: How to control multiDex and minifying from product flavors?
body: <p>I am using following flavors to improve debug builds for devices with Android 5 and above:</p>
  
  <pre><code>productFlavors {
      // Define separate dev and prod product flavors.
      dev {
        // dev utilizes minSDKVersion = 21 to allow the Android gradle plugin
        // to pre-dex each module and produce an APK that can be tested on
        // Android Lollipop without time consuming dex merging processes.
        minSdkVersion 21
      }
      prod {
        // The actual minSdkVersion for the application.
        minSdkVersion 16
      }
    }
  </code></pre>
  
  <p>However not all of my devices runs under api 21+, thus I want to control multiDex and minifying. E.g.:</p>
  
  <pre><code>  productFlavors {
      dev {
        minSdkVersion 21
        multiDexEnabled false
        minifyEnabled false
      }
      prod {
        minSdkVersion 16
        multiDexEnabled true
        minifyEnabled true
      }
    }
  </code></pre>
  
  <p>But that's gives me:</p>
  
  <pre><code>Error:(44, 0) Could not find method minifyEnabled() for arguments [false] on ProductFlavor_Decorated
  </code></pre>
  
  <p>How can I combine those properties together?</p>