From 3cf5e5a97afe8fc7877b528cf19130bef0d68bad Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 10 Sep 2020 14:35:21 +0200 Subject: build the app --- StoneIsland/plugins/es6-promise-plugin/README.md | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 StoneIsland/plugins/es6-promise-plugin/README.md (limited to 'StoneIsland/plugins/es6-promise-plugin/README.md') diff --git a/StoneIsland/plugins/es6-promise-plugin/README.md b/StoneIsland/plugins/es6-promise-plugin/README.md new file mode 100644 index 00000000..e8cb30f9 --- /dev/null +++ b/StoneIsland/plugins/es6-promise-plugin/README.md @@ -0,0 +1,36 @@ +# PromisesPlugin + +ES6-Promises polyfill for Cordova/PhoneGap + +# Motivation + +The web view components on Cordova supported platforms lack suport for ES6 Promise. A polyfill library bundled with the plugin fixes the limitation. However, as more plugin use promises, the application developer using these plugins will end up with multiple promise polyfill libraries. + +This plugin attempts to fix this situation by providing a Promise polyfill so that other plugins can rely on this functionality. + +# How to use + +Configure your plugin's plugin.xml by adding this dependency: + +``` + +``` + +Cordova CLI takes care to install PromisesPlugin automatically: + +``` +$ cordova plugins add {yourPlugin} + +> Installing "{yourPlugin}" for {platform} +> Installing "es6-promise-plugin" for {platform} +``` + +This is all. ```window.Promise``` is available for use in your plugin. + +# Credits + +This plugin wraps [es6-promise](https://github.com/jakearchibald/es6-promise) in a Cordova/PhoneGap friendly way. + +# License + +The plugin is available under MIT license. -- cgit v1.2.3-70-g09d2