I want to build a lite version of my game (Ad-Supported).
The problem is: The java package needs to be renamed so that it doesn't conflict with the full version.
I tried refactoring inside eclipse, but when you try to rename the base product package all Hell breaks loose.
So basically I am stuck altering all files by hand.
Does some-one know a short-cut I can take?
Compiling Lite Versions for Android
Started by SillyCow, Nov 25 2011 09:24 AM
5 replies to this topic
#1 Members - Reputation: 114
Posted 25 November 2011 - 09:24 AM
Checkout my android game : http://market.androi....killerbeeslite
Ad:
#3 Members - Reputation: 114
Posted 25 November 2011 - 11:18 PM
Katie, on 25 November 2011 - 04:25 PM, said:
"Does some-one know a short-cut I can take?"
Perl.
SED.
Python.
Personally, I tend to write bash/sed scripts for this sort of thing.
Perl.
SED.
Python.
Personally, I tend to write bash/sed scripts for this sort of thing.
Thanks for your reply,
I could AWK the !@#$% out of this.
But I was hoping to avoid writing a complicated build script.
Checkout my android game : http://market.androi....killerbeeslite
#6 Members - Reputation: 122
Posted 27 January 2012 - 09:01 AM
Refactoring should definitely work fine.
But generally speaking, you don't want to do it this way. Break out the 99% of the game code that is identical into a library project, and then create two new projects - one for your regular version and one for the free version. Trust me - you will be glad you did when you have to do maintenance on the new version. In addition, this also means that you only need to create a new package for a few files.
But generally speaking, you don't want to do it this way. Break out the 99% of the game code that is identical into a library project, and then create two new projects - one for your regular version and one for the free version. Trust me - you will be glad you did when you have to do maintenance on the new version. In addition, this also means that you only need to create a new package for a few files.



















