版本控制和 Android 库项目
当使用 Android Library Project 时,是否有人有一个好的版本解决方案控制使用这些库的项目?
例如,如果我有两个应用程序,比如说免费版本和付费版本,或者手机和平板电脑,或者任何其他场景,并且我希望它们使用 Android Lib 项目中包含的一些共享库,我如何安全地添加这些项目到SVN?由于它们是单独的项目,我无法知道当一个项目提交时另一个项目(库项目)也提交。
我正在使用 Eclipse 和 Subclipse SVN 插件,有谁知道是否有一种方法可以链接项目,以便对一个项目的提交会提交另一个项目?
欢迎这里的任何提示 - 因为我对 SVN 相对较新 - 所以可能以错误的方式思考这个问题:)
谢谢
When using Android Library Project does anyone have a good solution for version control for projects that utilise these librarys?
For example if I have two apps, say a free version and paid, or phone and tablet, or any other scenario, and i want them to use some shared library's which are contained in an Android Lib Project, how can i safely add these projects to SVN? As they are seperate projects I have no way i know off enforcing that when one is committed the other (library one) is also.
I am using Eclipse with the Subclipse SVN plugin, does anyone know if there is a way to link the projects so a commit on one will commit the other?
Any tips here would be welcome - as I am relatively new to SVN - so may be thinking about this in the wrong way :)
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你不能强制要求两者同时提交(这不是 SVN 的工作方式),但你仍然可以做到这一点(正如大佬们所说,使用 Ctrl+Click 或将它们放在一个工作集中,然后提交) )。
Android处理库的方式确实是有很大缺陷的,这也是其原因之一。
You cannot enforce that both are committed at the same time (that's just not how SVN works), but you can still do it (by, as bigstones said, using Ctrl+Click or putting both of them in a Working Set, and committing that).
The way Android handles libraries is indeed quite flawed, and this is one of the reasons for it.
我对版本控制也很陌生,我也在使用 Subclipse,我不知道是否有办法同时提交项目和库(如果不使用 ctrl-click 选择两者),但实际上是“修改的”图标非常明显,我永远不会忘记它。
对我来说,问题是有时我修改从 lib 项目打开它的源,有时打开应用程序项目中引用的源,并且我必须记住刷新另一个。万一我忘记了,在第二种情况下,lib 项目不会显示“已修改”图标,因此我最终经常刷新这两个项目。
I'm quite new to versioning too, I'm using Subclipse too, I don't know if there's a way to commit both project and lib at once (if not selecting both with ctrl-click), but actually the "modified" icon is pretty visible and I never forgot about it.
The problem for me is that sometimes I modify the source opening it from the lib project, sometimes opening the source referenced in the app project, and I must remember to refresh the other. In case I forget it, in the second case, the lib project won't show the "modified" icon, so I end up refreshing both projects very often.