Reputation: 86
I have an app, say MyApp Free. I want to create MyApp Pro which I can charge for that has some additional functionality. The obvious way is to have a library that contains almost all my app code, then two Android app projects for the Free and Pro versions which reference that library.
Suggestions?
Upvotes: 4
Views: 215
Reputation: 3272
Another option is keeping a separate branch in your code repository for the free version, that is what I do. You do have to change AndroidManifest.xml for the free version on the free branch.
See 2-Version software: Best VCS approach?
Upvotes: 0
Reputation: 87430
For your particular situation, you could just write one project, then put a little static boolean in it that determines whether it's the free version of the paid version. I guess it doesn't really matter unless the added functionality involves a much bigger download.
Upvotes: 0
Reputation: 1006664
Look on my github page for the CWAC series of projects -- they all create JAR files for reuse in other projects.
In short, there's not much magical for simple JARs, other than putting the Android JAR in your build path so your code referencing Android APIs compiles.
However:
Upvotes: 3