title: Can I exclude regional resources (e.g. values-fr) when building a particular Android Product Flavor with gradle
body: <p>Say I have this directory structure:</p>
  
  <pre><code>app
  --src
     |--main
     |   |--java
     |   |--res
     |       |--drawable
     |       |--values
     |       |--values-fr
     |       |--values-de
     |
     |--flavor1
     |   |--res
     |       |--drawable
     |
     |--flavor2
     |   |--res
     |       |--drawable
     |
     |--flavor3
         |--res
             |--drawable
  </code></pre>
  
  <p><code>values-fr</code> is common for both <code>flavor1</code> and <code>flavor2</code>, and so <code>values</code>, <code>values-fr</code> and <code>values-de</code> should get packaged</p>
  
  <p><code>flavor3</code> should only package <code>values</code> and <code>values-de</code>. So I need to exclude the <code>values-fr</code> resource folder from the <code>flavor3</code> only.</p>
  
  <p>I've tried loads of combinations such as those below, but cannot figure it out, or even if it's possible.</p>
  
  <pre><code>sourceSets {
      flavor3 {
          res.exclude 'values-fr/**'
          res.exclude 'values-fr/'
      }
  }
  </code></pre>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>I found this working solution to <strong>include</strong> only German for the above example using:</p>
  
  <pre><code>productFlavors {
      flavour3 {
          resConfigs 'de' // include '-de' resources, along with default 'values'
      }
  }
  </code></pre>
  
  <p>You can also check the list of country codes from ICU <a href="http://www.localeplanet.com/icu/" rel="nofollow">here</a>.</p>