Search code examples
androidgoogle-playandroid-productflavorspackage-name

Add Flavors to the new version of published App


Is it possible to add Flavors to the new version of an already published App? If yes, suppose the following senario: I have a published app in Play Store (e.g. com.example.android). In the new version of the app I add (e.g. free and paid) Flavors. This addition changes the package name of the app to com.example.android.free and com.example.android.paid. Suppose I publish only the com.example.android.free Flavor. What will the link to the Play store be like?

https://play.google.com/store/apps/details?id=com.android.example (as it already was) or it will be renamed to https://play.google.com/store/apps/details?id=com.android.example.free


Solution

  • You can't change the package name of an already published app, you can however have two flavors free/paid, but one of them should have the original package name: e.g.

    free = com.example.android
    paid = com.example.android.paid
    

    which will mean the free app would update the currently existing one, and the paid app will be a new app on Google Play (with zero statistics and downloads).

    the links to the 2 apps would be as expected: https://play.google.com/store/apps/details?id=com.android.example and https://play.google.com/store/apps/details?id=com.android.example.paid

    If you want to enjoy the best of both worlds, look into [in-app-billing][1] to allow your users to download the app for free, and pay within the app to unlock premium features.