plugin.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:rim="http://www.blackberry.com/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-ionic-webview" version="2.3.2">
  19. <name>cordova-plugin-ionic-webview</name>
  20. <description>Ionic Web View Engine Plugin</description>
  21. <license>Apache-2.0</license>
  22. <keywords>cordova,wkwebview</keywords>
  23. <repo>https://github.com/ionic-team/cordova-plugin-ionic-webview</repo>
  24. <engines>
  25. <engine name="cordova-ios" version=">=4.0.0-dev"/>
  26. <engine name="apple-ios" version=">=9.0"/>
  27. <engine name="cordova-android" version=">=6.4.0"/>
  28. </engines>
  29. <js-module src="src/www/util.js" name="IonicWebView">
  30. <clobbers target="Ionic.WebView"/>
  31. </js-module>
  32. <platform name="android">
  33. <config-file target="config.xml" parent="/*">
  34. <allow-navigation href="http://localhost:8080/*"/>
  35. <preference name="webView" value="com.ionicframework.cordova.webview.IonicWebViewEngine"/>
  36. <feature name="IonicWebView">
  37. <param name="android-package" value="com.ionicframework.cordova.webview.IonicWebView"/>
  38. </feature>
  39. </config-file>
  40. <source-file src="src/android/com/ionicframework/cordova/webview/IonicWebViewEngine.java" target-dir="src/com/ionicframework/cordova/webview"/>
  41. <source-file src="src/android/com/ionicframework/cordova/webview/IonicWebView.java" target-dir="src/com/ionicframework/cordova/webview"/>
  42. <source-file src="src/android/com/ionicframework/cordova/webview/AndroidProtocolHandler.java" target-dir="src/com/ionicframework/cordova/webview"/>
  43. <source-file src="src/android/com/ionicframework/cordova/webview/UriMatcher.java" target-dir="src/com/ionicframework/cordova/webview"/>
  44. <source-file src="src/android/com/ionicframework/cordova/webview/WebViewLocalServer.java" target-dir="src/com/ionicframework/cordova/webview"/>
  45. <preference name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" default="27.+"/>
  46. <framework src="com.android.support:support-annotations:$ANDROID_SUPPORT_ANNOTATIONS_VERSION"/>
  47. </platform>
  48. <!-- ios -->
  49. <platform name="ios">
  50. <js-module src="src/www/ios/ios-wkwebview-exec.js" name="ios-wkwebview-exec">
  51. <clobbers target="cordova.exec"/>
  52. </js-module>
  53. <config-file target="config.xml" parent="/*">
  54. <allow-navigation href="http://localhost:8080/*"/>
  55. <allow-navigation href="http://127.0.0.1:8080/*"/>
  56. <allow-navigation href="ionic://*"/>
  57. <feature name="IonicWebView">
  58. <param name="ios-package" value="CDVWKWebViewEngine"/>
  59. </feature>
  60. <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine"/>
  61. </config-file>
  62. <framework src="WebKit.framework" weak="true"/>
  63. <header-file src="src/ios/CDVWKWebViewEngine.h"/>
  64. <source-file src="src/ios/CDVWKWebViewEngine.m"/>
  65. <header-file src="src/ios/CDVWKWebViewUIDelegate.h"/>
  66. <source-file src="src/ios/CDVWKWebViewUIDelegate.m"/>
  67. <header-file src="src/ios/CDVWKProcessPoolFactory.h"/>
  68. <source-file src="src/ios/CDVWKProcessPoolFactory.m"/>
  69. <header-file src="src/ios/IONAssetHandler.h"/>
  70. <source-file src="src/ios/IONAssetHandler.m"/>
  71. <asset src="src/ios/wk-plugin.js" target="wk-plugin.js"/>
  72. <!--GCDWebServer headers-->
  73. <header-file src="src/ios/GCDWebServer/Core/GCDWebServer.h"/>
  74. <header-file src="src/ios/GCDWebServer/Core/GCDWebServerConnection.h"/>
  75. <header-file src="src/ios/GCDWebServer/Core/GCDWebServerFunctions.h"/>
  76. <header-file src="src/ios/GCDWebServer/Core/GCDWebServerHTTPStatusCodes.h"/>
  77. <header-file src="src/ios/GCDWebServer/Core/GCDWebServerPrivate.h"/>
  78. <header-file src="src/ios/GCDWebServer/Core/GCDWebServerRequest.h"/>
  79. <header-file src="src/ios/GCDWebServer/Core/GCDWebServerResponse.h"/>
  80. <header-file src="src/ios/GCDWebServer/Requests/GCDWebServerDataRequest.h"/>
  81. <header-file src="src/ios/GCDWebServer/Requests/GCDWebServerFileRequest.h"/>
  82. <header-file src="src/ios/GCDWebServer/Requests/GCDWebServerMultiPartFormRequest.h"/>
  83. <header-file src="src/ios/GCDWebServer/Requests/GCDWebServerURLEncodedFormRequest.h"/>
  84. <header-file src="src/ios/GCDWebServer/Responses/GCDWebServerDataResponse.h"/>
  85. <header-file src="src/ios/GCDWebServer/Responses/GCDWebServerErrorResponse.h"/>
  86. <header-file src="src/ios/GCDWebServer/Responses/GCDWebServerFileResponse.h"/>
  87. <header-file src="src/ios/GCDWebServer/Responses/GCDWebServerStreamedResponse.h"/>
  88. <!--GCDWebServer source-->
  89. <source-file src="src/ios/GCDWebServer/Core/GCDWebServer.m"/>
  90. <source-file src="src/ios/GCDWebServer/Core/GCDWebServerConnection.m"/>
  91. <source-file src="src/ios/GCDWebServer/Core/GCDWebServerFunctions.m"/>
  92. <source-file src="src/ios/GCDWebServer/Core/GCDWebServerRequest.m"/>
  93. <source-file src="src/ios/GCDWebServer/Core/GCDWebServerResponse.m"/>
  94. <source-file src="src/ios/GCDWebServer/Requests/GCDWebServerDataRequest.m"/>
  95. <source-file src="src/ios/GCDWebServer/Requests/GCDWebServerFileRequest.m"/>
  96. <source-file src="src/ios/GCDWebServer/Requests/GCDWebServerMultiPartFormRequest.m"/>
  97. <source-file src="src/ios/GCDWebServer/Requests/GCDWebServerURLEncodedFormRequest.m"/>
  98. <source-file src="src/ios/GCDWebServer/Responses/GCDWebServerDataResponse.m"/>
  99. <source-file src="src/ios/GCDWebServer/Responses/GCDWebServerErrorResponse.m"/>
  100. <source-file src="src/ios/GCDWebServer/Responses/GCDWebServerFileResponse.m"/>
  101. <source-file src="src/ios/GCDWebServer/Responses/GCDWebServerStreamedResponse.m"/>
  102. <!--GCDWebServer dependencies-->
  103. <framework src="libz.tbd"/>
  104. </platform>
  105. <issue>https://github.com/ionic-team/cordova-plugin-ionic-webview/issues</issue>
  106. <author>Ionic Team</author>
  107. </plugin>