I have two build variants in my app, one is an standard app edition and the second one is a customization app.
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'
}
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.
1.- Two classes , one with the standard requirements and one with the custom requirements
2.- In the standard class do something like:
if (getPackageName()==customConfig )
// do the custom things
else
//do the standard things