I have two build options in my application, one is the standard version of the application, and the second is the configuration application.
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 customization, I have to implement new features, but only for customization, so these new features will not be available in the standard version. I'm not sure what to do.
1.- Two classes, one with standard requirements and one with custom requirements
2.- In the standard class, do something like:
if (getPackageName()==customConfig )
else
source
share