在两个“分支”分裂Android应用程序,免费和付费 [英] Splitting android application in to two 'branches', free and paid

查看:111
本文介绍了在两个“分支”分裂Android应用程序,免费和付费的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个Android的应用程序,I'dd喜欢把上的市场。不过,我想将它拆分成两个独立的应用程序,一是免费的(广告),和一个支付(逻辑上没有广告)。我怎么会去这样做?我不知道如何添加广告(我alreaddy管理的),而是如何采取一现有的Andr​​oid应用程序(Eclipse的项目),并无需创建一个新的项目,只是复制粘贴的每一个文件分割成两个一个接一个(或分批为此事)。这可能吗?

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?

顺便说一句,我用GIT供应链管理,所以我做了两个不同的分支,一个主站和一个自由的,但我需要设置的配置价值,使舒尔,市场他们分开作为两个不同的应用程序的一些CIND。

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?

推荐答案

您可以使用的的Maven Android插件来构建多个版本的同一应用程序。然后,您可以为每个版本指定不同的Andr​​oidManifest(以指定不同的应用程序包名称的每个版本)。

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

您免费和付费您的应用程序的版本将在Maven的是不同的配置文件。

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

这篇关于在两个“分支”分裂Android应用程序,免费和付费的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆