开发者

How to automatically update android:versionName?

For an improved bugreporting I'd l开发者_开发知识库ike if the tag android:versionName automatically contains the number of the revision on the svn server. Anyone knows how to do that? Thanks

`


Try svn:keywords.


You could use a start-commit hook that writes the current time stamp into the android:versionName in the manifest. You'd have to write a small script that uses some regex to insert the current time stamp into the AndroidManifest.xml, and then call that as pre-commit hook

The revision number that's being checked in is not yet known for the start-commit hook, so you cannot write it to the manifest.

I haven't really used those hooks myself. As far as I understand, you can make a directory /repoName/.svn/hook/, and inside that, you create one or more executables, e.g. "start-commit", that does what you want.

This seems like a nice starting point if you want to know more about the hooks: A Subversion Pre-Commit Hook

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜