Android清单集结号 [英] android manifest build number
问题描述
我想知道是否有可能使Eclipse自动增加清单
每当我完成构建或运行Android应用程序。里面的内部版本号P>
有没有人做过这样的事?
我不认为Eclipse的本身可以做到这一点,但我想你可以写解析清单文件,并更新数的脚本。你可以设置它为pre-构建步骤,所以每次Eclipse编译code,它改变了一些。
我与唯一担心的是,你可能会达到pretty的大数字,这取决于如何迭代开发过程。此外,这让你处于危险的忘记更新版本字符串,用户将被提示从1.0版本升级到1.0版本。
I was wondering if it is possible to have Eclipse automatically increment the build version number inside of the Manifest
each time that I either build or run an Android app.
Has anyone ever done something like this?
I don't think Eclipse itself can do it, but I would imagine you could write a script that parses the manifest file and updates the number. You could set that up as a pre-build step, so every time Eclipse compiles your code, it changes the number.
My only concern with that would be that you could reach pretty big numbers, depending on how iterative your development process is. Also, this puts you at risk at forgetting to update the version string, and the users will be prompted to upgrade from version 1.0 to version 1.0.
这篇关于Android清单集结号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!