The approach I followed eventually was to create a new variant like this:
flavorGroups "features"
productFlavors {
normal {
flavorGroup "features"
}
stripped {
packageName "other.package"
flavorGroup "features"
}
}
And I just changed the activity transitions by sending diffent intents from each variant (I created separate source folders for each variant i.e.
src/main, src/stripped, src/normal etc.
I believe this was the fastest approach and has the advantage of being able to customize small parts in the common activities, rather than having an extracted library project and having two copies of the same activity just for a small customization.