并行的PhoneGap开发 - 应用程序的iPhone和Android [英] Parallel PhoneGap development - app for iPhone and Android

查看:140
本文介绍了并行的PhoneGap开发 - 应用程序的iPhone和Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开始开发使用煎茶触摸和PhoneGap的应用程序。它应该是在两个iPhone和Android设备可运行。我想获得关于如何设置我的开发环境的最佳途径,要能够在两个平台(设备)上的svn共同codeBase的上不断测试的技巧。

I am about to start developing an application using Sencha Touch and PhoneGap. It is supposed to be runnable on both iPhone and Android devices. I would like to get tips about how to set up my dev environment in the best way, to be able to constantly test on both platforms (device) with a common codebase on svn.

在我一直在做的到现在为止的PoC,我只有在SVN控制的WWW文件夹版本,并检出到我的本地X code项目,然后符号链接到我的本地Eclipse项目(这没'科技工作有以x code符号链接,它不会在设备上运行的话)。这样,我所有的web应用程序文件都在这两个平台上不断更新。但是,现在我们将不止一个开发商做这个工作,我们需要有控制过整个项目的版本。我的想法是版本控制在其全部的X code-项目(包含www那里),无论是否包含www Eclipse的。然后在本地每个开发者符号链接从X code项目,Eclipse项目的收银台结账WWW。说得通?任何人有任何更好的想法或经验分享?

In the PoC that I have been doing until now, I have only the www-folder version controlled in svn, and checked out into my local Xcode project and then symlinked into my local Eclipse project (it didn't work to have symlink in xcode, it doesn't run on device then). This way all my webapp files are always updated in both platforms. However, now we will be more than one developer working on it, and we will need to have the whole projects version controlled too. My thought is to version control the Xcode-project in its full (with the www there), and the Eclipse without the www. Then locally each developer symlinks the www checkout from the xcode project to the eclipse project checkout. Makes sense? Anyone has any better idea or experience to share?

推荐答案

我也遇到了这个问题。检查网络,我认为在各种解决方案有三种合理的解决方案。

I have also ran into this issue. Checking various solutions on the web I think there are three reasonable solutions.

1)这两个项目外广场www文件夹和符号链接他们

1) Place www folder outside both projects and symlink them

2)两个项目以外的地方www文件夹,并使用构建脚本复制到相应的文件夹。在iOS中的情况下使用的构建阶段选项卡,在机器人的情况下,你可以使用Ant脚本。

2) Place www folder outside both projects and use build scripts to copy to the appropriate folder. In case of iOS use the build phases tab, in case of droid you can use an ant script.

3)使用git子模块(或svn外部)功能。

3) Use git submodule (or svn external) feature.

请参阅1)和3)中的更多细节的http: //www.senchatouchbits.com/8/organizing-files-within-phonegap-projects.html
有优点和缺点的所有解决方案和项目的要求(环境,等等)。

See 1) and 3) in more details at http://www.senchatouchbits.com/8/organizing-files-within-phonegap-projects.html There are pros and cons for all solutions and your project's requirements (environment, etc).

这篇关于并行的PhoneGap开发 - 应用程序的iPhone和Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆