@capacitor/ios 7.0.1 → 7.0.2-dev-20250212T193125.0
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.
|
@@ -27,7 +27,19 @@ import Cordova
|
|
|
27
27
|
return false
|
|
28
28
|
}()
|
|
29
29
|
|
|
30
|
+
// TODO: Remove in Capacitor 8 after moving status bar plugin extensions code
|
|
31
|
+
@objc func handleViewDidAppear() {
|
|
32
|
+
if bridge?.config.hasInitialFocus ?? true {
|
|
33
|
+
self.webView?.becomeFirstResponder()
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
deinit {
|
|
38
|
+
NotificationCenter.default.removeObserver(self)
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
override public final func loadView() {
|
|
42
|
+
NotificationCenter.default.addObserver(self, selector: #selector(self.handleViewDidAppear), name: Notification.Name(rawValue: "CapacitorViewDidAppear"), object: nil)
|
|
31
43
|
// load the configuration and set the logging flag
|
|
32
44
|
let configDescriptor = instanceDescriptor()
|
|
33
45
|
let configuration = InstanceConfiguration(with: configDescriptor, isDebug: CapacitorBridge.isDevEnvironment)
|
|
@@ -64,7 +76,6 @@ import Cordova
|
|
|
64
76
|
|
|
65
77
|
override open func viewDidAppear(_ animated: Bool) {
|
|
66
78
|
super.viewDidAppear(animated)
|
|
67
|
-
|
|
68
79
|
if bridge?.config.hasInitialFocus ?? true {
|
|
69
80
|
self.webView?.becomeFirstResponder()
|
|
70
81
|
}
|
|
@@ -58,8 +58,7 @@ open class WebViewAssetHandler: NSObject, WKURLSchemeHandler {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
if let rangeString = urlSchemeTask.request.value(forHTTPHeaderField: "Range"),
|
|
61
|
-
let totalSize = try fileUrl.resourceValues(forKeys: [.fileSizeKey]).fileSize
|
|
62
|
-
isMediaExtension(pathExtension: url.pathExtension) {
|
|
61
|
+
let totalSize = try fileUrl.resourceValues(forKeys: [.fileSizeKey]).fileSize {
|
|
63
62
|
let fileHandle = try FileHandle(forReadingFrom: fileUrl)
|
|
64
63
|
let parts = rangeString.components(separatedBy: "=")
|
|
65
64
|
let streamParts = parts[1].components(separatedBy: "-")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/ios",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2-dev-20250212T193125.0",
|
|
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)",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"xc:build:xcframework": "scripts/build.sh xcframework"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@capacitor/core": "^7.0.0"
|
|
29
|
+
"@capacitor/core": "^7.0.0-dev-20250212T193125.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|