Enable proguard in flavor
<p>I'm using TeamCity to build version of application and upload it to HockeyApp. I want to enable proguard only on specific flavor and when building is on teamcity and uploading on HockeyApp, is it possible? Right now I defined variable in gradle file:</p>

<pre><code>def runProguard = false
</code></pre>

<p>and set it in my flavors to false or true and then in build type I have:</p>

<pre><code>if (project.hasProperty('teamcity') &amp;&amp; runProguard.toBoolean()) {
    minifyEnabled true
  } else {
    minifyEnabled false
}
</code></pre>

<p>but it doesn't work on teamcity and I have version without proguard on HockeyApp. How to fix it? Is it another way to do it for example defining gradle task with enabled proguard?</p>