开发者

Configure one app to be built using two Android name spaces?

开发者 https://www.devze.com 2023-04-08 05:14 出处:网络
I have an app that, for release, needs building as two apps. The app will self-reconfigure based on the app\'s namespace, so I just need to build two versions, each with its own slightly different nam

I have an app that, for release, needs building as two apps. The app will self-reconfigure based on the app's namespace, so I just need to build two versions, each with its own slightly different namespace.

开发者_开发问答

I obviously want to avoid changing source code package names, and would like to change the name space in one place so building either version is quick and easy.

Can I simply change the package name in the <manifest> tag in the Android manifest, making sure my references are fully qualified? Are there any gotchas with doing this?


Have two separate application projects, with separate package names, and have the common functionality - the bulk of your code - in a shared library project.

0

精彩评论

暂无评论...
验证码 换一张
取 消