forked from Telerik-Verified-Plugins/WKWebView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
executable file
·79 lines (58 loc) · 2.49 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="com.telerik.plugins.wkwebview"
version="0.6.10">
<name>WKWebView Polyfill</name>
<description>
A drop-in replacement of UIWebView for boosted performance and enhanced HTML5 support
</description>
<author>Eddy Verbruggen / Telerik</author>
<license>MIT</license>
<keywords>Webkit, Webkit webview, WKWebView Polyfill, WKWebView, WebView+</keywords>
<repo>https://github.com/Telerik-Verified-Plugins/WKWebView.git</repo>
<issue>https://github.com/Telerik-Verified-Plugins/WKWebView/issues</issue>
<preference name="WKWEBVIEW_SERVER_PORT" default="12344" />
<engines>
<engine name="cordova-ios" version=">=3.0.0 <4.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>