Jump to content



Compiling Lite Versions for Android

  • You cannot reply to this topic
5 replies to this topic

#1 SillyCow   Members   -  Reputation: 114

Like
0Likes
Like

Posted 25 November 2011 - 09:24 AM

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?
Checkout my android game : http://market.androi....killerbeeslite

Ad:

#2 Katie   Members   -  Reputation: 650

Like
1Likes
Like

Posted 25 November 2011 - 04:25 PM

"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.

#3 SillyCow   Members   -  Reputation: 114

Like
0Likes
Like

Posted 25 November 2011 - 11:18 PM

View PostKatie, 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.

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

#4 robobrain   Members   -  Reputation: 106

Like
0Likes
Like

Posted 05 December 2011 - 12:54 PM

What kind of hell was breaking loose when you used Eclipse to refactor it?
Want to make Android Games?
Then check out the free RoboBrain SDK.
www.robobrain.org

#5 compscialien   Members   -  Reputation: 104

Like
0Likes
Like

Posted 09 January 2012 - 04:01 PM

The Eclipse IDE should be able to refactor it with no problems. Are you renaming or refactoring? Each shortcut works a bit differently.

#6 Strategy   Members   -  Reputation: 122

Like
0Likes
Like

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.
Michael A.Designer/Developer
A Brief History of Rome
Pirates and traders






We are working on generating results for this topic
PARTNERS