Do I need to change the package name for the free version of my app?

前端 未结 4 502
闹比i
闹比i 2020-12-06 07:25

I have an application that I\'m going to publish to the Android market. I\'m planning on releasing a paid-for version and a free version with restricted feature set.

相关标签:
4条回答
  • 2020-12-06 08:09

    you can also use ProductFlavor in your gradle

    productFlavor{
       demo{
         .....your code.....
       }
       pro{
       .... your code for pro....
       }
    }
    
    0 讨论(0)
  • 2020-12-06 08:11

    You do have to use different package names as explained, but you don't have to duplicate much code, even if you use separate projects. What I did when I decided to release two versions is to make my original a library project, and create separate projects that referenced it. Reference (Assumes Eclipse) The only thing you have to copy is the manifest. Anything else with changes you can simply extend your original class and overwrite what you need to.

    0 讨论(0)
  • 2020-12-06 08:17

    Yes, you need to make to use two different package names for the free and paid version. Fortunately, its really easy, right click your App Project in Eclipse -> Android Tools -> Rename Application Package.

    0 讨论(0)
  • 2020-12-06 08:17

    Yes if you want to have 2 different versions they must have different package names. I have free and pay versions and it is a pain to manage this and both code bases.

    Another option though is to just have a "key" app that you can sell that will unlock features in the free version.

    0 讨论(0)
提交回复
热议问题