I've already made two different Android projects and they have different package names. They're identical except in the Main Activity where the free version expires after 7 days whereas the paid version checks for a purchase license.
What I want is that when a user installs the paid version then the free version on their device (if it exists) gets replaced by the paid version and also all the user's saved SharedPreferences from the free version move over to the paid version. Is this possible? Or will the user have to uninstall the free version as well as lose all their saved settings?
I read questions related to this and they all talk about using ProductFlavors to create different build variants, but I'm not sure if the purpose of this is just to make the work easier for devs or if it helps in what I'm trying to do.