D D
D D

Reputation: 29

CrossWalk LITE integration with Cordova

I've created a Cordova project and downloaded the Crosswalk-Lite zip file. My problem is that I don't know what to do next. The docu only says: "Same as crosswalk-project.org/documentation/cordova.html " but this page explains how to to install regular Crosswalk, not Lite.

The documentation to integrate Crosswalk Lite with Cordova is a bit ambiguous. Can someone give a more specific explanation about the steps to follow to make it work?

Upvotes: 2

Views: 1297

Answers (2)

beaver
beaver

Reputation: 17647

And how about using Ionic Framework? It simplifies all things.

So, using Ionic you could choose among all available browser listed by the Ionic CLI command ionic browser list. Output example:

Android - Browsers Listing:

Available - Crosswalk - ionic browser add crosswalk
         Version 8.37.189.14 Published
         Version 9.38.208.10 Published
         Version 10.39.235.15 Published
         Version 11.40.277.7 Published
         Version 12.41.296.5 Published
(beta)   Version 13.42.319.6 Published
(canary) Version 14.42.334.0 Published

Available - Crosswalk-lite - ionic browser add crosswalk-lite
(canary) Version 10.39.234.1 Published
(canary) Version 10.39.236.1 Published

Then, for example, install an alternate browser with the command:

ionic browser add [email protected]

Upvotes: 3

paulsm4
paulsm4

Reputation: 121649

Per the documentation:

https://crosswalk-project.org/documentation/cordova/cordova_4.html

  1. Your best bet is to make sure you have Cordova 4.0 or higher (the current version is 5.1.1).

  2. Download and install the Android SDK (which, of course, you'll always need).

  3. Download and install Node.js and the Cordova CLI (Cordova CLI relies on Node/NPM).

  4. Download and install Crosswalk and/or Crosswalk-Lite

  5. Use Cordova CLI to create a project platform (as you would with any Cordova project)

    cordova create hello com.example.hello HelloWorld; cd hello; cordova platform add android

  6. Build with Crosswalk WebView engine for Android (this is the "integration magic")

    cordova plugin add cordova-plugin-crosswalk-webview

  7. Implement your app (as you would any Crosswalk or Cordova project)

  8. Use the Cordova CLI to build the implemented project (as you would any Cordova app):

    cordova build android

Upvotes: 3

Related Questions