[英]Android main package vs library module: who's app version data do I retain?
I was wondering where I should specify the versionCode/versionName in an Android library. 我想知道在Android库中应该在哪里指定versionCode / versionName。 Before I created the module, the app version data was stored in the manifest.
在创建模块之前,应用程序版本数据已存储在清单中。 Now I have two manifests, one for the main application (third-party) and one for the the library.
现在,我有两个清单,一个用于主应用程序(第三方),一个用于库。 I know that the main application's manifest gets higher priority during a merge, so I'm concerned that a the third-party's app version data will overwrite ours and cause issues.
我知道在合并过程中主应用程序的清单会获得更高的优先级,因此我担心第三方的应用程序版本数据会覆盖我们的清单数据并导致问题。
Is this a problem I should be worried about? 这是我应该担心的问题吗? If so, what's the standard fix in this situation?
如果是这样,这种情况下的标准解决方案是什么?
I'd be grateful for any advice. 如有任何建议,我将不胜感激。 Thank you!
谢谢!
I was wondering where I should specify the versionCode/versionName in an Android library.
我想知道在Android库中应该在哪里指定versionCode / versionName。
You don't. 你不知道 They do not have version codes or version names.
他们没有版本代码或版本名称。
If so, what's the standard fix in this situation?
如果是这样,这种情况下的标准解决方案是什么?
Remove the version code and version name from the library module. 从库模块中删除版本代码和版本名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.