Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to Manage Free version?

Tags:

android

svn

I have just released my first app and would like to have a free version to it as well. I was wondering how should I manage my free version branch (in svn) so that it's easy to merge changes from full version? is it possible to just change package name in Manifest file? or do the package names have to be different in code? If so how could I Merge Changes easily?

Thanks, Jason

like image 311
Jason Avatar asked Dec 07 '10 18:12

Jason


2 Answers

The Android Library Project is your friend here.

like image 178
Mike Yockey Avatar answered Sep 30 '22 10:09

Mike Yockey


I use this in all my apps :

public static final boolean LITE_VERSION = true;

then use it to disable some features.

It's important to know that the java compiler will ignore any piece of code in a if (!LITE_VERSION) block if LITE_VERSION is set to true, so it can't be reverse engineered (you can test it with the "javap -c" command).

like image 29
Dalmas Avatar answered Sep 30 '22 11:09

Dalmas