Reputation: 29
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
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
Reputation: 121649
Per the documentation:
https://crosswalk-project.org/documentation/cordova/cordova_4.html
Your best bet is to make sure you have Cordova 4.0 or higher (the current version is 5.1.1).
Download and install the Android SDK (which, of course, you'll always need).
Download and install Node.js and the Cordova CLI (Cordova CLI relies on Node/NPM).
Download and install Crosswalk and/or Crosswalk-Lite
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
Build with Crosswalk WebView engine for Android (this is the "integration magic")
cordova plugin add cordova-plugin-crosswalk-webview
Implement your app (as you would any Crosswalk or Cordova project)
Use the Cordova CLI to build the implemented project (as you would any Cordova app):
cordova build android
Upvotes: 3