I have a core product (for example School core) Now I need to launch it for 2 school (example School A and School B). Only different is app icon splash screen. I try to manage this through flavour. As we know to upload to google play store we need different package name, so I got stuck there.
My flavour looks like this -
productFlavors {
main {
applicationId "net.school.main"
versionCode 7
versionName "2.12"
}
schoolA {
versionCode 2
versionName '1.01'
applicationId 'net.school.schoolA'
}
schoolB {
versionCode 1
versionName '1.0'
applicationId 'net.school.schoolB'
}
}
When I run the flavour schoolA it's saying package not found. I am looking for best approach so that in future any new school can be added with minimal changes.