javaandroideclipsegoogle-playmultiple-apk

Manage Lite and Pro versions of app in Eclipse


I just finished my Full version on my app. I am now looking around trying to figure out how to make my Lite version of the app. Not a whole lot is different but there are differences especially when you are playing the trivia game. How do I go about managing both of these versions in Eclipse? I looked at this guide:

http://blog.donnfelker.com/2010/08/05/howto-android-full-and-lite-versions/

But it seems like the linked tutorial is outdated based on the comments below the tutorial about adding Proguard to the code. There has to be an easy way to do this. Is the best way still to make 3 projects like the above linked tutorial says but just find away to get around the Proguard issue?


Solution

  • Not sure if this counts as an answer but I have positive experiences from using library projects when creating dual version Apps like free/pro, lite/paid or whatever you choose to call them.

    You can separate the differences in logic either by using simple if-statements, like if(AppType.isFree(context)) where in the helper method you check if the context package is that of the free or paid version.

    Or by using inheritance and interfaces to take advantage of polymorphism and dynamic binding. For example the menu activity in your lib might invoke a getGameActivity, which depending on sub class (free or paid) returns the appropriate version of the game and where most of the logic is in the abstract lib GameActivity class.

    And about ProGuard, if you are not very afraid of reverse engineering, it's not really necessary to bother with it.