Crosswalk Project for iOS
Introduction
The Crosswalk Project for iOS provides a web runtime for sophisticated iOS native and hybrid applications.
Extended WKWebView
The Crosswalk Project for iOS is built on top of
WKWebView
, the modern WebKit framework that debuted in iOS 8. We extend the WKWebView with the Crosswalk extension framework. For detailed information, refer to Embedding Mode & Native APIs.Crosswalk Extension Framework
Extensions allow you to extend the ability of the Crosswalk runtime. You create your feature using Swift or Objective-C and expose it as a JavaScript function or object. The JavaScript stub code can be generated automatically based on the native interface. For more information, refer to Extensions.
Cordova Plugins Support
To leverage existing Cordova plugins, a Cordova extension is provided to simulate the Cordova environment. Simply place the source files of the Cordova plugins into your project and register the plugin classes in the manifest. For more information, refer to Cordova plugin support.
System Requirements
Host development system:
Target system:
- iOS 8+
Quickstart
Follow the Quick Start Guide to setup a simple XWalkView based application from scratch.
Demos
The following 3 demos are available:
-
A simple app that shows how to embed a XWalkView, implement Crosswalk Extensions, and configuring the extensions and application.
-
An example that shows how to integrate a Cordova Plugin with the Crosswalk Cordova Extension support, and usage of the
apache.cordova.device
plugin. -
Another Cordova Plugin demo, imported from https://github.com/Icenium/sample-file.git, that demostrates the usage of the
apache.cordova.file
plugin.
NOTE: Try the demos after the project's submodules get initialized, using:
> git submodule update --init --recursive
Licence
The Crosswalk Project for iOS is available under the BSD license.