{"_id":"@dpogue/cordova-plugin-crosswalk-webview","_rev":"4-8ec8ae8457138104f99b16f9a5d2d1ed","name":"@dpogue/cordova-plugin-crosswalk-webview","description":"Changes the default WebView to CrossWalk","dist-tags":{"latest":"1.4.1"},"versions":{"1.4.0":{"name":"@dpogue/cordova-plugin-crosswalk-webview","version":"1.4.0","description":"Changes the default WebView to CrossWalk","cordova":{"id":"cordova-plugin-crosswalk-webview","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git"},"keywords":["cordova","chromium","crosswalk","webview","engine","ecosystem:cordova","cordova-android"],"engines":[{"name":"cordova-android","version":">=4"},{"name":"cordova-plugman","version":">=4.2.0"}],"author":"","license":"Apache 2.0","bugs":{"url":"https://crosswalk-project.org/jira"},"homepage":"https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview","gitHead":"112ac62da4dea223a42cc5e11ef6e77538998f2d","_id":"@dpogue/cordova-plugin-crosswalk-webview@1.4.0","scripts":{},"_shasum":"2070963a84eac00d83358384e032bc8414ca18e1","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.2.0","_npmUser":{"name":"dpogue","email":"darryl@dpogue.ca"},"dist":{"shasum":"2070963a84eac00d83358384e032bc8414ca18e1","tarball":"https://registry.npmjs.org/@dpogue/cordova-plugin-crosswalk-webview/-/cordova-plugin-crosswalk-webview-1.4.0.tgz","integrity":"sha512-WbSWfMzYlH+hPePeYEwxyTl92Nw92bfUo3PGU2FrLXOM2xLcdiAfPIMqWMzoZ9QozQragRXnEQ54wZlrRedT7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICf6wUOmMCTR7h17gOPzJrm++RwvxewlcmTitDFE1uvCAiEA7OlftzzJJ+FWhmN5pUQZKFu/tJxSl0JzWEM+GgDyfCU="}]},"maintainers":[{"name":"dpogue","email":"darryl@dpogue.ca"}]},"1.4.1":{"name":"@dpogue/cordova-plugin-crosswalk-webview","version":"1.4.1","description":"Changes the default WebView to CrossWalk","cordova":{"id":"cordova-plugin-crosswalk-webview","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git"},"keywords":["cordova","chromium","crosswalk","webview","engine","ecosystem:cordova","cordova-android"],"engines":[{"name":"cordova-android","version":">=4"},{"name":"cordova-plugman","version":">=4.2.0"}],"author":"","license":"Apache 2.0","bugs":{"url":"https://crosswalk-project.org/jira"},"homepage":"https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview","gitHead":"2a22cab2dd9bdf05876ffe41f01e938475d7b644","_id":"@dpogue/cordova-plugin-crosswalk-webview@1.4.1","scripts":{},"_shasum":"35589a0091ee73f1b471ced2407fce562b79be7f","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"dpogue","email":"darryl@dpogue.ca"},"dist":{"shasum":"35589a0091ee73f1b471ced2407fce562b79be7f","tarball":"https://registry.npmjs.org/@dpogue/cordova-plugin-crosswalk-webview/-/cordova-plugin-crosswalk-webview-1.4.1.tgz","integrity":"sha512-l40ktpzaijo9QEqMX1JUwYf9iUQZy8gkBch/zWcEDIxmLPqMePK9bNVdWaT+QHOELQqAcFzDHF3XDDdtvOIQGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjKiOhD44tXH8VzsrGoJZL8rGeXlXrwU1l26tZDYaTagIhAJYPVc7JWD0Rmcv2DzP74EH8qSFXvio9zdzyDrQJtW7E"}]},"maintainers":[{"name":"dpogue","email":"darryl@dpogue.ca"}]}},"readme":"# cordova-plugin-crosswalk-webview\n\nMakes your Cordova application use the [Crosswalk WebView](https://crosswalk-project.org/)\ninstead of the System WebView. Requires cordova-android 4.0 or greater.\n\n### Benefits\n\n* WebView doesn't change depending on Android version\n* Capabilities: such as WebRTC, WebAudio, Web Components\n* Performance improvements (compared to older system webviews)\n\n\n### Drawbacks\n\n* Increased memory footprint\n  * An overhead of ~30MB (as reported by the RSS column of ps)\n* Increased APK size (about 17MB)\n* Increased size on disk when installed (about 50MB)\n* Crosswalk WebView stores data (IndexedDB, LocalStorage, etc) separately from System WebView\n  * You'll need to manually migrate local data when switching between the two (note: this is fixed in Crosswalk 15)\n\n### Install\n\nThe following directions are for cordova-cli (most people).  Alternatively you can use the [Android platform scripts workflow](PlatformScriptsWorkflow.md).\n\n* Open an existing cordova project, with cordova-android 4.0.0+, and using the latest CLI. Crosswalk variables can be configured as an option when installing the plugin\n* Add this plugin\n\n```\n$ cordova plugin add cordova-plugin-crosswalk-webview\n```\n\n* Build\n```\n$ cordova build android\n```\nThe build script will automatically fetch the Crosswalk WebView libraries from Crosswalk project download site (https://download.01.org/crosswalk/releases/crosswalk/android/maven2/) and build for both X86 and ARM architectures.\n\nFor example, building android with Crosswalk generates:\n\n```\n/path/to/hello/platforms/android/build/outputs/apk/hello-x86-debug.apk\n/path/to/hello/platforms/android/build/outputs/apk/hello-armv7-debug.apk\n```\n\nNote that it is also possible to publish a multi-APK application on the Play Store that uses Crosswalk for Pre-L devices, and the (updatable) system webview for L+:\n\nTo build Crosswalk-enabled apks, add this plugin and run:\n\n    $ cordova build --release\n\nTo build System-webview apk, remove this plugin and run:\n\n    $ cordova build --release -- --minSdkVersion=21\n\n### Configure\n\nYou can try out a different Crosswalk version by specifying certain variables while installing the plugin, or by changing the value of `xwalkVersion` in your `config.xml` after installing the plugin. Some examples:\n\n    <!-- These are all equivalent -->\n    cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_VERSION=\"org.xwalk:xwalk_core_library:14+\"\n    cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_VERSION=\"xwalk_core_library:14+\"\n    cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_VERSION=\"14+\"\n    cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_VERSION=\"14\"\n    <preference name=\"xwalkVersion\" value=\"org.xwalk:xwalk_core_library:14+\" />\n    <preference name=\"xwalkVersion\" value=\"xwalk_core_library:14+\" />\n    <preference name=\"xwalkVersion\" value=\"14+\" />\n    <preference name=\"xwalkVersion\" value=\"14\" />\n\nYou can also use a Crosswalk beta version. Some examples:\n\n    <!-- These are all equivalent -->\n    cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_VERSION=\"org.xwalk:xwalk_core_library_beta:14+\"\n    <preference name=\"xwalkVersion\" value=\"org.xwalk:xwalk_core_library_beta:14+\" />\n\nYou can set [command-line flags](http://peter.sh/experiments/chromium-command-line-switches/) as well:\n\n    <!-- This is the default -->\n    cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_COMMANDLINE=\"--disable-pull-to-refresh-effect\"\n    <preference name=\"xwalkCommandLine\" value=\"--disable-pull-to-refresh-effect\" />\n\nYou can use the Crosswalk [shared mode](https://crosswalk-project.org/documentation/shared_mode.html) which allows multiple Crosswalk applications to share one Crosswalk runtime downloaded from the Play Store.\n\n    <!-- These are all equivalent -->\n    cordova plugin add cordova-plugin-crosswalk-webview  --variable XWALK_MODE=\"shared\"\n    <preference name=\"xwalkMode\" value=\"shared\" />\nNote that if you want to specify the Crosswalk version when using shared mode, you need to use the shared version of the library, e.g.: \n\n    <!-- Using a Crosswalk shared mode beta version -->\n    cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_VERSION=\"org.xwalk:xwalk_shared_library_beta:14+\"\n\nYou can set background color with the preference of BackgroundColor.\n\n    <!-- Set red background color -->\n    <preference name=\"BackgroundColor\" value=\"0xFFFF0000\" />\n\nYou can also set user agent with the preference of xwalkUserAgent.\n\n    <preference name=\"xwalkUserAgent\" value=\"customer UA\" />\n\n### Release Notes\n\n#### 1.4.0 (November 5, 2015)\n* Uses the latest Crosswalk 15 stable version by default\n* Support User Agent and Background Color configuration preferences\n* Compatible with the newest Cordova version 5.3.4\n\n#### 1.3.0 (August 28, 2015)\n* Crosswalk variables can be configured as an option via CLI\n* Support for [Crosswalk's shared mode](https://crosswalk-project.org/documentation/shared_mode.html) via the XWALK_MODE install variable or xwalkMode preference\n* Uses the latest Crosswalk 14 stable version by default\n* The ANIMATABLE_XWALK_VIEW preference is false by default\n* Doesn't work with Crosswalk 14.43.343.17 and earlier\n\n#### 1.2.0 (April 22, 2015)\n* Made Crosswalk command-line configurable via `<preference name=\"xwalkCommandLine\" value=\"...\" />`\n* Disabled pull-down-to-refresh by default\n\n#### 1.1.0 (April 21, 2015)\n* Based on Crosswalk v13\n* Made Crosswalk version configurable via `<preference name=\"xwalkVersion\" value=\"...\" />`\n\n#### 1.0.0 (Mar 25, 2015)\n* Initial release\n* Based on Crosswalk v11\n","maintainers":[{"name":"dpogue","email":"darryl@dpogue.ca"}],"time":{"modified":"2022-06-12T17:20:50.171Z","created":"2015-12-15T00:28:19.338Z","1.4.0":"2015-12-15T00:28:19.338Z","1.4.1":"2016-01-28T00:54:55.427Z"},"homepage":"https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview","keywords":["cordova","chromium","crosswalk","webview","engine","ecosystem:cordova","cordova-android"],"repository":{"type":"git","url":"git+https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git"},"bugs":{"url":"https://crosswalk-project.org/jira"},"license":"Apache 2.0","readmeFilename":"README.md"}