Here's how I did it, not sure if it is the best practice or the most
efficient one.

1. Create an Android project from Eclipse, this will be used solely
for developing paid version.
2. Create an ant script to copy the entire paid version to a separate
directory that becomes the free version.
3. Use custom ant tasks like TextRewrite to replace package name, app
name, etc from paid to free version.
4. Use a preprocessor ant task (I used prebop) to additionally inject
ads code (or cripple features) into free version.
5. After all the injections, transformations, you can either build the
free version from ant, or from Eclipse (Same goes for the paid
version).

Of course it's not as simple as it seems, even while developing for
the paid version, I still need to make some classes aware of whether
it is free or paid (e.g. DatabaseAdapter related).

On May 7, 11:03 am, Greg Donald <[email protected]> wrote:
> On Fri, May 7, 2010 at 12:13 PM, Alex (PS3 Friends) <[email protected]> 
> wrote:
>
> > it also makes it easier to
> > move from one machine to another if need be
>
> Just curious.. what problems have you ran into developing 
> acrossmultiplemachines?  I develop on both Win7 and Ubuntu Linux using git
> and I have zero issues related to moving back and forth between them.
>
> I have a .gitignore file that looks like this:
>
> *.apk
> .metadata
> .swp
> */bin/*
> */gen/*
>
> Works really well for me.
>
> --
> Greg Donald
> destiney.com | gregdonald.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to