gpt4 book ai didi

javascript - PhoneGap——基本架构

转载 作者:行者123 更新时间:2023-11-30 17:12:49 25 4
gpt4 key购买 nike

在我深入研究一些严肃的摆弄之前,我做对了吗?

  • PhoneGap 是一个构建工具,而不是开发工具。
  • 如果愿意,我可以在记事本中设计我的 html/JavaScript 例程,并使用 PhoneGap 来“构建”包含 html/JavaScript 容器的 native 应用程序。
  • 我可以使用 PhoneGap 构建服务为所有平台构建,无需让每个平台都可用。
  • PhoneGap 似乎是朝着使用Eclipse 的方向走的。 Eclipse 将使我的生活更轻松,让我可以直接在虚拟移动设备上运行我的应用程序(它访问适当的(已安装的)SDK/虚拟器)向我展示我的应用程序并允许我测试它。
  • 如果没有 Eclipse,我将不得不在设备上进行构建和物理测试?
  • 我从未使用过 Eclipse,但非常喜欢 Visual Studio,即使是基本的 html/JavaScript 编码也是如此。 (尽管 Visual Studio 2012 不调试 JavaScript)。
  • Eclipse 可以调试 Javascript 吗?
  • 我应该使用(习惯)Eclipse 来将其用作我的主要移动开发工具吗?
  • 就目前而言,PhoneGap 和 Cordova 之间有区别吗?是否存在代码拆分,或者只是一些命名卡住了。

最佳答案

  • PhoneGap 是构建工具,而不是开发工具

来自 Wikipedia :

PhoneGap is a mobile development framework produced by Nitobi, purchased by Adobe Systems in 2011. It enables software programmers to build applications for mobile devices using JavaScript, HTML5, and CSS3, instead of relying on platform-specific APIs like those in iOS or Android.

Phonegap 还有一个构建工具 [local] 可以用来构建最终的应用程序。它还有一个构建服务 [远程],允许上传 Assets 然后下载打包的应用程序。

  • 如果愿意,我可以在记事本中设计我的 html/JavaScript 例程,并使用 phonegap 来“构建”包含 html/JavaScript 容器的 native 应用程序。

记事本就可以了,可能您想使用更好的文本编辑器。您可以从命令行启动build,最终的应用程序将是一个 WebView 全屏,其行为与 native 应用程序一样。基本上是一个没有浏览器工具栏的网页

Phonegap architecture diagram

  • 我可以使用 phonegap 构建服务为所有平台构建,无需让每个平台都可用。

是的,有一个本地构建命令 [需要在本地计算机上安装平台 SDK] 和远程构建服务。那个不需要平台,会给出最终打包的应用程序。例如你只能在苹果电脑上安装Apple SDK,但你可以使用Windows电脑远程构建一个IOS应用程序。如果您有特定要求,构建服务需要支付订阅费。

  • phonegap 似乎是朝着使用Eclipse 的方向走的。 Eclipse 将使我的生活更轻松,让我可以直接在虚拟移动设备上运行我的应用程序(它访问适当的(已安装的)SDK/虚拟器)向我展示我的应用程序并允许我测试它。

Eclipse 可以集成在guide from Adobe之后和其他指南。即将发布的 IntelliJ Idea 14 版本将原生支持 Phonegap/Cordova 项目。

  • 如果没有 Eclipse,我将不得不在设备上进行构建和物理测试?

不,您仍然可以将 Assets 上传到 PhoneGap 构建服务:

来自页面:https://build.phonegap.com/faq

How do I get started with PhoneGap Build?

Simply upload your web assets - a ZIP file of HTML, CSS and JavaScript, or a single index.html file - to PhoneGap Build, point us to your Git or SVN repository. Then we’ll undertake the compilation and packaging for you. In minutes, you’ll receive the download URLs for all mobile platforms.

  • 我从未使用过 eclipse,但非常喜欢 Visual Studio,即使是基本的 html/JavaScript 编码也是如此。 (尽管 Visual Studio 2012 不调试 JavaScript)。
  • Eclipse 可以调试 JavaScript
  • 我是否应该使用(习惯)eclipse 将其用作我的主要移动开发工具?

可以使用任何编辑器,使用最适合您的编辑器。关于调试 PhoneGap/Cordova 应用程序,SO 中有一个很好的答案:Is there a real solution to debug cordova apps .

  • 就目前而言,phonegap 和 cordova 之间有区别吗?是否存在代码拆分,或者只是一些命名卡住了。

来自页面PhoneGap, Cordova, and what’s in a name?

PhoneGap is a distribution of Apache Cordova. You can think of Apache Cordova as the engine that powers PhoneGap, similar to how WebKit is the engine that powers Chrome or Safari. (Browser geeks, please allow me the affordance of this analogy and I’ll buy you a beer later.)

Over time, the PhoneGap distribution may contain additional tools that tie into other Adobe services, which would not be appropriate for an Apache project. For example, PhoneGap Build and Adobe Shadow together make a whole lot of strategic sense. PhoneGap will always remain free, open source software and will always be a free distribution of Apache Cordova.

关于javascript - PhoneGap——基本架构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26648378/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com