cordova-plugin-inappbrowser-patch 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CONTRIBUTING.md +37 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +5 -0
  4. package/README.md +722 -0
  5. package/RELEASENOTES.md +801 -0
  6. package/package.json +60 -0
  7. package/plugin.xml +103 -0
  8. package/src/android/InAppBrowser.java +1503 -0
  9. package/src/android/InAppBrowserDialog.java +57 -0
  10. package/src/android/InAppChromeClient.java +190 -0
  11. package/src/android/res/drawable-hdpi/ic_action_next_item.png +0 -0
  12. package/src/android/res/drawable-hdpi/ic_action_previous_item.png +0 -0
  13. package/src/android/res/drawable-hdpi/ic_action_remove.png +0 -0
  14. package/src/android/res/drawable-mdpi/ic_action_next_item.png +0 -0
  15. package/src/android/res/drawable-mdpi/ic_action_previous_item.png +0 -0
  16. package/src/android/res/drawable-mdpi/ic_action_remove.png +0 -0
  17. package/src/android/res/drawable-xhdpi/ic_action_next_item.png +0 -0
  18. package/src/android/res/drawable-xhdpi/ic_action_previous_item.png +0 -0
  19. package/src/android/res/drawable-xhdpi/ic_action_remove.png +0 -0
  20. package/src/android/res/drawable-xxhdpi/ic_action_next_item.png +0 -0
  21. package/src/android/res/drawable-xxhdpi/ic_action_previous_item.png +0 -0
  22. package/src/android/res/drawable-xxhdpi/ic_action_remove.png +0 -0
  23. package/src/browser/InAppBrowserProxy.js +245 -0
  24. package/src/ios/CDVInAppBrowserNavigationController.h +28 -0
  25. package/src/ios/CDVInAppBrowserNavigationController.m +63 -0
  26. package/src/ios/CDVInAppBrowserOptions.h +51 -0
  27. package/src/ios/CDVInAppBrowserOptions.m +90 -0
  28. package/src/ios/CDVWKInAppBrowser.h +80 -0
  29. package/src/ios/CDVWKInAppBrowser.m +1223 -0
  30. package/src/ios/CDVWKInAppBrowserUIDelegate.h +32 -0
  31. package/src/ios/CDVWKInAppBrowserUIDelegate.m +127 -0
  32. package/types/index.d.ts +109 -0
  33. package/www/inappbrowser.js +124 -0
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "cordova-plugin-inappbrowser-patch",
3
+ "version": "6.0.1",
4
+ "description": "Cordova InAppBrowser Plugin",
5
+ "types": "./types/index.d.ts",
6
+ "cordova": {
7
+ "id": "cordova-plugin-inappbrowser-patch",
8
+ "platforms": [
9
+ "android",
10
+ "browser",
11
+ "ios"
12
+ ]
13
+ },
14
+ "repository": "github:ipunkvizard/cordova-plugin-inappbrowser",
15
+ "bugs": "https://github.com/ipunkvizard/cordova-plugin-inappbrowser/issues",
16
+ "keywords": [
17
+ "cordova",
18
+ "in",
19
+ "app",
20
+ "browser",
21
+ "inappbrowser",
22
+ "ecosystem:cordova",
23
+ "cordova-android",
24
+ "cordova-browser",
25
+ "cordova-ios"
26
+ ],
27
+ "scripts": {
28
+ "test": "npm run lint",
29
+ "lint": "eslint ."
30
+ },
31
+ "engines": {
32
+ "cordovaDependencies": {
33
+ "0.2.3": {
34
+ "cordova": ">=3.1.0"
35
+ },
36
+ "4.0.0": {
37
+ "cordova": ">=3.1.0",
38
+ "cordova-ios": ">=4.0.0"
39
+ },
40
+ "5.0.0": {
41
+ "cordova-android": ">=9.0.0",
42
+ "cordova-ios": ">=6.0.0",
43
+ "cordova": ">=9.0.0"
44
+ },
45
+ "6.0.1-dev": {
46
+ "cordova-android": ">=10.0.0",
47
+ "cordova-ios": ">=6.0.0",
48
+ "cordova": ">=9.0.0"
49
+ },
50
+ "7.0.0": {
51
+ "cordova": ">100"
52
+ }
53
+ }
54
+ },
55
+ "author": "Apache Software Foundation",
56
+ "license": "Apache-2.0",
57
+ "devDependencies": {
58
+ "@cordova/eslint-config": "^5.0.0"
59
+ }
60
+ }
package/plugin.xml ADDED
@@ -0,0 +1,103 @@
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
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
22
+ id="cordova-plugin-inappbrowser-patch"
23
+ version="6.0.1">
24
+
25
+ <name>InAppBrowser</name>
26
+ <description>Cordova InAppBrowser Plugin</description>
27
+ <license>Apache 2.0</license>
28
+ <keywords>cordova,in,app,browser,inappbrowser</keywords>
29
+ <repo>https://github.com/apache/cordova-plugin-inappbrowser</repo>
30
+ <issue>https://github.com/apache/cordova-plugin-inappbrowser/issues</issue>
31
+
32
+ <engines>
33
+ <engine name="cordova" version=">=9.0.0"/>
34
+ <engine name="cordova-android" version=">=9.0.0" />
35
+ <engine name="cordova-ios" version=">=6.0.0" />
36
+ </engines>
37
+
38
+ <!-- android -->
39
+ <platform name="android">
40
+ <js-module src="www/inappbrowser.js" name="inappbrowser">
41
+ <clobbers target="cordova.InAppBrowser.open" />
42
+ </js-module>
43
+ <config-file target="res/xml/config.xml" parent="/*">
44
+ <feature name="InAppBrowser">
45
+ <param name="android-package" value="org.apache.cordova.inappbrowser.InAppBrowser"/>
46
+ </feature>
47
+ </config-file>
48
+
49
+ <source-file src="src/android/InAppBrowser.java" target-dir="src/org/apache/cordova/inappbrowser" />
50
+ <source-file src="src/android/InAppBrowserDialog.java" target-dir="src/org/apache/cordova/inappbrowser" />
51
+ <source-file src="src/android/InAppChromeClient.java" target-dir="src/org/apache/cordova/inappbrowser" />
52
+
53
+ <!-- drawable src/android/resources -->
54
+ <resource-file src="src/android/res/drawable-hdpi/ic_action_next_item.png" target="res/drawable-hdpi/ic_action_next_item.png" />
55
+ <resource-file src="src/android/res/drawable-mdpi/ic_action_next_item.png" target="res/drawable-mdpi/ic_action_next_item.png" />
56
+ <resource-file src="src/android/res/drawable-xhdpi/ic_action_next_item.png" target="res/drawable-xhdpi/ic_action_next_item.png" />
57
+ <resource-file src="src/android/res/drawable-xxhdpi/ic_action_next_item.png" target="res/drawable-xxhdpi/ic_action_next_item.png" />
58
+
59
+ <resource-file src="src/android/res/drawable-hdpi/ic_action_previous_item.png" target="res/drawable-hdpi/ic_action_previous_item.png" />
60
+ <resource-file src="src/android/res/drawable-mdpi/ic_action_previous_item.png" target="res/drawable-mdpi/ic_action_previous_item.png" />
61
+ <resource-file src="src/android/res/drawable-xhdpi/ic_action_previous_item.png" target="res/drawable-xhdpi/ic_action_previous_item.png" />
62
+ <resource-file src="src/android/res/drawable-xxhdpi/ic_action_previous_item.png" target="res/drawable-xxhdpi/ic_action_previous_item.png" />
63
+
64
+ <resource-file src="src/android/res/drawable-hdpi/ic_action_remove.png" target="res/drawable-hdpi/ic_action_remove.png" />
65
+ <resource-file src="src/android/res/drawable-mdpi/ic_action_remove.png" target="res/drawable-mdpi/ic_action_remove.png" />
66
+ <resource-file src="src/android/res/drawable-xhdpi/ic_action_remove.png" target="res/drawable-xhdpi/ic_action_remove.png" />
67
+ <resource-file src="src/android/res/drawable-xxhdpi/ic_action_remove.png" target="res/drawable-xxhdpi/ic_action_remove.png" />
68
+
69
+ </platform>
70
+
71
+ <!-- ios -->
72
+ <platform name="ios">
73
+ <js-module src="www/inappbrowser.js" name="inappbrowser">
74
+ <clobbers target="cordova.InAppBrowser.open" />
75
+ </js-module>
76
+ <config-file target="config.xml" parent="/*">
77
+ <feature name="InAppBrowser">
78
+ <param name="ios-package" value="CDVWKInAppBrowser" />
79
+ <param name="onload" value="true" />
80
+ </feature>
81
+ </config-file>
82
+ <header-file src="src/ios/CDVInAppBrowserOptions.h" />
83
+ <source-file src="src/ios/CDVInAppBrowserOptions.m" />
84
+ <header-file src="src/ios/CDVInAppBrowserNavigationController.h" />
85
+ <source-file src="src/ios/CDVInAppBrowserNavigationController.m" />
86
+ <header-file src="src/ios/CDVWKInAppBrowser.h" />
87
+ <source-file src="src/ios/CDVWKInAppBrowser.m" />
88
+ <header-file src="src/ios/CDVWKInAppBrowserUIDelegate.h" />
89
+ <source-file src="src/ios/CDVWKInAppBrowserUIDelegate.m" />
90
+
91
+ <framework src="CoreGraphics.framework" />
92
+ </platform>
93
+
94
+ <!-- browser -->
95
+ <platform name="browser">
96
+ <js-module src="www/inappbrowser.js" name="inappbrowser">
97
+ <clobbers target="cordova.InAppBrowser.open" />
98
+ </js-module>
99
+ <js-module src="src/browser/InAppBrowserProxy.js" name="InAppBrowserProxy">
100
+ <runs />
101
+ </js-module>
102
+ </platform>
103
+ </plugin>