Wednesday, January 20, 2010

[android-developers] Re: How to factor code for Free/Paid app versions?

Hi,

I manage 1 code for full/free version.
In the code I have special comment for all lines I need to switch
(comment or uncomment) depending on the version. for instance :

if(page >= 4) { // DEMO
.. // DEMO
} // DEMO

int numberOfStuff = 10; // DEMO
//int numberOfStuff = 100; // FULL

So a quick Search in all my sources finds the parts which should be
changed. Of course I have only a few lines to modify !

This way : the .apk is 'really' different and the DEMO version can not
be changed easily into a FULL version.

(don't forget to test version limitation each time before you
publish :-)

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate