When building multiple whitelable apps on the same codebase it's easy to use the build flavor mechanism of Android Studio. I can easily set a new applicationId
in build.gradle file.
android {
productFlavors {
original {
applicationId "com.original.myapp"
}
whitelable {
applicationId "com.whitelable.myapp"
}
}
}
Everything's nice BUT the package name of the whitelable app is still com.original.myapp
and the component name of the main activity is com.whitelable.myapp/com.original.myapp.MainActivity
. Everybody can see that the whitelable app is build upon the original app.
Is the a way to replace the package name for the build flavor so the original package name at least doesn't appear on the flavored app's component names?