开发者

A better way of switching between Android source versions

I would like to be able to switch between various android releases (1.0, 1.5, 2.0, etc.) and then access them via the file system to copy all files for that version into a tarball. Currently I am just running repo init -u <source URL> -b release-1. to get each version (changing the tag for each version I need)开发者_开发知识库. If this was a single git, I could check out the branch/tag I needed and the prject directory would "morph" to reflect then and I could just tar that folder. since the android source is split into multiple git repositories controlled by repo I have not yet found a way to change this other then the method mentioned above.

any suggestions are appreciated.


you can run init -b {branch} on an existing checkout, without the -u parameter. repo sync will change your sources to the branch.


If it is just source for the IDE debug of application there is a blog post listed in one of my android-programming knols giving links to those source code archives.

just search for android-programming on the Google Knol site to find it..

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜