@capacitor/ios 3.3.4 → 3.4.2
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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,37 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.4.2](https://github.com/ionic-team/capacitor/compare/3.4.1...3.4.2) (2022-03-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @capacitor/ios
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.4.1](https://github.com/ionic-team/capacitor/compare/3.4.0...3.4.1) (2022-02-09)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **ios:** Reload webView on webViewWebContentProcessDidTerminate ([#5391](https://github.com/ionic-team/capacitor/issues/5391)) ([beebff4](https://github.com/ionic-team/capacitor/commit/beebff4550575c28c233937a11a8eacf5a76411c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.4.0](https://github.com/ionic-team/capacitor/compare/3.3.4...3.4.0) (2022-01-19)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **ios:** Add new iOS 15 Motion permission delegate ([#5317](https://github.com/ionic-team/capacitor/issues/5317)) ([c05a3cb](https://github.com/ionic-team/capacitor/commit/c05a3cbbf02217e3972d5e067970cae18bff3faa))
|
|
31
|
+
* **ios:** Add new iOS15 media capture permission delegate ([#5196](https://github.com/ionic-team/capacitor/issues/5196)) ([d8b54ac](https://github.com/ionic-team/capacitor/commit/d8b54ac23414bfe56e50e1254066630a6f87eb0e))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
6
37
|
## [3.3.4](https://github.com/ionic-team/capacitor/compare/3.3.3...3.3.4) (2022-01-05)
|
|
7
38
|
|
|
8
39
|
**Note:** Version bump only for package @capacitor/ios
|
|
@@ -46,6 +46,28 @@ internal class WebViewDelegationHandler: NSObject, WKNavigationDelegate, WKUIDel
|
|
|
46
46
|
// Reset the bridge on each navigation
|
|
47
47
|
bridge?.reset()
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
// TODO: remove once Xcode 12 support is dropped
|
|
51
|
+
#if compiler(>=5.5)
|
|
52
|
+
@available(iOS 15, *)
|
|
53
|
+
func webView(
|
|
54
|
+
_ webView: WKWebView,
|
|
55
|
+
requestMediaCapturePermissionFor origin: WKSecurityOrigin,
|
|
56
|
+
initiatedByFrame frame: WKFrameInfo,
|
|
57
|
+
type: WKMediaCaptureType,
|
|
58
|
+
decisionHandler: @escaping (WKPermissionDecision) -> Void
|
|
59
|
+
) {
|
|
60
|
+
decisionHandler(.grant)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@available(iOS 15, *)
|
|
64
|
+
func webView(_ webView: WKWebView,
|
|
65
|
+
requestDeviceOrientationAndMotionPermissionFor origin: WKSecurityOrigin,
|
|
66
|
+
initiatedByFrame frame: WKFrameInfo,
|
|
67
|
+
decisionHandler: @escaping (WKPermissionDecision) -> Void) {
|
|
68
|
+
decisionHandler(.grant)
|
|
69
|
+
}
|
|
70
|
+
#endif
|
|
49
71
|
|
|
50
72
|
public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
|
|
51
73
|
// post a notification for any listeners
|
|
@@ -124,6 +146,10 @@ internal class WebViewDelegationHandler: NSObject, WKNavigationDelegate, WKUIDel
|
|
|
124
146
|
CAPLog.print("⚡️ Error: " + error.localizedDescription)
|
|
125
147
|
}
|
|
126
148
|
|
|
149
|
+
public func webViewWebContentProcessDidTerminate(_ webView: WKWebView) {
|
|
150
|
+
webView.reload()
|
|
151
|
+
}
|
|
152
|
+
|
|
127
153
|
// MARK: - WKScriptMessageHandler
|
|
128
154
|
|
|
129
155
|
func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/ios",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Capacitor: Cross-platform apps with JavaScript and the web",
|
|
5
5
|
"homepage": "https://capacitorjs.com",
|
|
6
6
|
"author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"xc:build:CapacitorCordova": "cd CapacitorCordova && xcodebuild && cd .."
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@capacitor/core": "^3.
|
|
27
|
+
"@capacitor/core": "^3.4.0"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "2e4a06b34d664c538ea96dde6be2abea99acb468"
|
|
33
33
|
}
|