UNPKG

com.peerio.cordova.plugin.wkwebview

Version:

A drop-in replacement of UIWebView for boosted performance and enhanced HTML5 support

72 lines (57 loc) 2.49 kB
<?xml version="1.0" encoding="UTF-8"?> <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="com.peerio.cordova.plugin.wkwebview" version="0.6.9"> <name>Peerio WKWebView Polyfill</name> <description> A fork of Telerik WKWebView to protect server from being accessed outside of the app </description> <author>Samvel Avanesov / Peerio, Eddy Verbruggen / Telerik</author> <license>MIT</license> <keywords>Webkit, Webkit webview, WKWebView Polyfill, WKWebView, WebView+</keywords> <repo>https://github.com/PeerioTechnologies/peerio-cordova-wkwebview</repo> <preference name="WKWEBVIEW_SERVER_PORT" default="12344" /> <engines> <engine name="cordova" version=">=3.0.0"/> </engines> <!-- ios --> <platform name="ios"> <js-module src="www/wkwebview.js" name="wkwebview"> <clobbers target="wkwebview" /> </js-module> <config-file target="config.xml" parent="/*"> <feature name="WKWebViewPolyfill"> <param name="ios-package" value="WKWebViewPolyfill"/> </feature> </config-file> <!-- NOTE: It would be nicer to allow http loads from localhost only, but without this suddenly remote non-https calls will stop working for ppl on iOS9. --> <config-file target="*-Info.plist" parent="NSAppTransportSecurity"> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> </config-file> <config-file target="*-Info.plist" parent="WKWebViewPluginEmbeddedServerPort"> <string>$WKWEBVIEW_SERVER_PORT</string> </config-file> <!-- For WKWebView --> <framework src="WebKit.framework" /> <!-- the controller loading the WKWebView --> <header-file src="src/ios/MyMainViewController.h"/> <source-file src="src/ios/MyMainViewController.m"/> <!-- the class which swaps in our controller and offers helper methods for the JS API --> <header-file src="src/ios/AppDelegate+WKWebViewPolyfill.h"/> <source-file src="src/ios/AppDelegate+WKWebViewPolyfill.m"/> <!-- helper classes --> <header-file src="src/ios/ReroutingUIWebView.h"/> <source-file src="src/ios/ReroutingUIWebView.m"/> <header-file src="src/ios/CDVWebViewOperationsDelegate.h"/> <source-file src="src/ios/CDVWebViewOperationsDelegate.m"/> <header-file src="src/ios/CDVWebViewUIDelegate.h"/> <source-file src="src/ios/CDVWebViewUIDelegate.m"/> <dependency id="cordova-plugin-webserver" /> </platform> </plugin>