我已经编写了sencha应用程序,我想为黑莓10构建它现在我不知道;不理解适当的cordova版本,并且使用cordova 3.0运行黑莓10时出错。在http://cordova.apache.org/docs/en/3.1.0/guide_platforms_blackberry10_index.md.html给出的文件似乎不够。任何答案。
答案 0 :(得分:1)
如何使用Sencha BB10 Phonegap / Cordova Webworks运行项目?
框架
Sencha:提供基于HTML5的应用开发工具和服务,用于构建在任何设备上运行的通用应用。
PhoneGap / Cordova:我们使用的是2.7及以下版本。与cordova-cli一样,由于某些版本不兼容问题,我们无法为BB10创建构建。
WebWorks:不要混淆这个,因为需要运行一些命令将应用程序移植到BB10手机。 BlackBerry 10 WebWorks SDK支持为BlackBerry 10 OS开发应用程序 javascript + html平台。
设备:BB10
步骤
第1步:在BB10上运行PhoneGap
下载手机版本(我们已下载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
按照以下步骤操作,希望您最终会笑脸。