0

私はすでに sencha アプリをコーディングしていますが、Blackberry 10 用にビルドしたいのですが、動作する適切な cordova バージョンがわかりません。また、blackberry 10 を cordova 3.0 で実行するとエラーが発生します。http://cordova.apache.org/docs/en/3.1.0/guide_platforms_blackberry10_index.md.htmlにあるドキュメントは十分ではないようです。任意の答え。

4

1 に答える 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 に答える