我已经编写了 sencha 应用程序,现在我想为 Blackberry 10 构建它;不了解合适的cordova 版本,并在使用cordova 3.0 运行blackberry 10 时出错。http://cordova.apache.org/docs/en/3.1.0/guide_platforms_blackberry10_index.md.html提供的文档似乎还不够。任何答案。
问问题
265 次
1 回答
1
如何运行具有 Sencha BB10 Phonegap/Cordova Webworks 的项目?
构架
Sencha :提供基于 HTML5 的应用程序开发工具和服务,用于构建可在任何设备上运行的通用应用程序。
PhoneGap/Cordova:我们使用的是 2.7 及以下版本。与 cordova-cli 一样,由于某些版本不兼容问题,我们无法为 BB10 创建构建。
WebWorks:不要与这个混淆,因为这是运行一些命令将应用程序移植到 BB10 手机所必需的。BlackBerry 10 WebWorks SDK 支持在 javascript + html 平台上为 BlackBerry 10 OS 开发应用程序。
设备:BB10
脚步
第 1 步:在 BB10 上运行 PhoneGap
下载Phone Gap版本(我们下载了2.7)
> Follow the steps mentioned in this link
[Click Here][1]
https://github.com/ctetreault/incubator-cordova-docs/blob/master/docs/en/edge/guide/getting-started/blackberry/index.md
> Create New Project from above step and run on device.
> Good to go for next step. Now Your project has all the features from Phonegap working in BB10 (like Camera, geolocation....). Generally controlled by plugin.xml and config.xml. Though there are few BB10 specific features or enteries like <rim:permissions> which is required by BB device to access core features
步骤 2 由于 Sencha 不直接支持 BB10。所以请执行这些步骤在 BB10(Phonegap Project) 上运行 Sencha 的东西
> Go inside the build folder in Sencha project published by Sencha Touch App/Architect.
> Copy all the contents (resources, splash, touch, all js) from the package/<App Name> folder (this folder depends upon Sencha cmd build) to
the BB10 phonegap www folder.
> Remember not to overide config.xml as BB10 has it's separate config.xml having some of it's specific features.
> Now open index.html and change the import of phonegap.js to the specific version you are using. Check inside BB10 phonegap project you will find specific cordova2.XXX.js
按照这些步骤,希望你最终会微笑。
于 2013-11-26T10:21:57.343 回答