Development of a free and premium version at the same time

When you write an application that should come in two versions, a free version (possibly with ads) and a premium version (no ads, but much more features), how do you manage these versions in your IDE? Do you treat them as two separate projects? I think this will not be a good idea, because every time you change something that is part of both versions, you have to change it twice. But if you are developing only one project, how do you export two different applications? Applications should have different manifest files (and possibly also other differences, at least a logical flag that tells the program whether it is a free or premium version). This is not possible with one project, right?

So, I would like to know how you professionally develop such applications.

In addition, I would like to know how you guarantee that installing the Premium version will override the free version (if installed).

+3
source share
2 answers

To fix the problem with duplicate code, you put most of your code in libraries. With Eclipse, it’s very easy to convert a project to a library, and you can reuse any component, including Actions and Resources (rather than assets).

Installing the premium version of the application does not cancel the free version, because these are different packages and are considered as different applications (not as different versions of the same application).

-.

+2

( Grade, Android Studio) "" " ". , / . , ( , ), , (Nook vs Play ..).

, , , , , , /. , , .

+2

All Articles