Different code in different build variant : <p>I have two build variants in my app, one is an standard app edition and the second one is a customization app.</p>

<pre><code>productFlavors {
        customConfig {
            minSdkVersion 14
            applicationId 'es.com.custom'
            targetSdkVersion 22
            versionCode 3
            versionName '3.0.0'
        }
        standard {
            minSdkVersion 14
            applicationId 'es.com.standard'
            targetSdkVersion 22
            versionCode 3
            versionName '3.0.0'
        }
</code></pre>

<p>For the customization I have to implement new features, but just for the customization, so those new features will be not available on the standard version. I am not sure what i have to do.    </p>

<p>1.- Two classes , one with the standard requirements and one with the custom requirements<br>
2.- In the standard class do something like:</p>

<pre><code>  if (getPackageName()==customConfig )
    // do the custom things
    else
    //do the standard things
</code></pre>
