Skip to main content
GameDev.net gamedev.net
🔒 Locked

Compiling Lite Versions for Android

Started by SillyCow Nov 25, 2011 at 3:24 PM 4 replies 1.9k views
Original Post
SillyCow
SillyCow
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?
My Oculus Rift Game: RaiderV My Android VR games: Time-Rider& Dozer Driver My browser game: 
Katie
Katie
"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.
SillyCow
SillyCow

"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.
My Oculus Rift Game: RaiderV My Android VR games: Time-Rider& Dozer Driver My browser game: 
compscialien
compscialien
The Eclipse IDE should be able to refactor it with no problems. Are you renaming or refactoring? Each shortcut works a bit differently.
Strategy
Strategy
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.