Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Splitting android application in to two 'branches', free and paid

I've developed an android-application that I'dd like to put up on the marketplace. However, I want to split it into two separate applications, one free (with ads), and one paid (logically without ads). How would I go about doing that? I'm not wondering about adding ads (I've alreaddy managed that), but how to take one existing android-application (eclipse-project) and split it into two without having to create a new project and just copy-paste every file one by one (or in batch for that matter). Is that possible?

Btw, I use GIT for SCM, so I've made two separate branches, one master and one free, but I need to set some cind of config-value that makes shure that the market separates them as two different applications.

Also, when a user 'upgrades', is it possible to copy the db from the free app to the paid one?

like image 745
Alxandr Avatar asked Nov 15 '22 11:11

Alxandr


1 Answers

You could use the Maven Android Plugin to build multiple versions of the same application. You could then specify a different AndroidManifest for each version (in order to specify a different Application Package Name for each version).

Your free and paid version of your app would be different profiles in Maven.

like image 100
yann.debonnel Avatar answered Dec 17 '22 06:12

yann.debonnel