@capacitor/ios 5.0.0-beta.2 → 5.0.0-dev-20230414T142519.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.
- package/Capacitor/Capacitor/CAPInstanceConfiguration.h +0 -1
- package/Capacitor/Capacitor/CAPInstanceConfiguration.m +0 -2
- package/Capacitor/Capacitor/CAPInstanceDescriptor.h +0 -5
- package/Capacitor/Capacitor/CAPInstanceDescriptor.m +0 -1
- package/Capacitor/Capacitor/CAPInstanceDescriptor.swift +0 -7
- package/Capacitor/Capacitor/Capacitor.h +0 -2
- package/Capacitor/Capacitor/CapacitorBridge.swift +0 -11
- package/Capacitor/Capacitor/WKWebView+Capacitor.m +0 -13
- package/package.json +2 -2
- package/Capacitor/Capacitor/WKWebView+Capacitor.h +0 -11
|
@@ -19,7 +19,6 @@ NS_SWIFT_NAME(InstanceConfiguration)
|
|
|
19
19
|
@property (nonatomic, readonly) BOOL scrollingEnabled;
|
|
20
20
|
@property (nonatomic, readonly) BOOL allowLinkPreviews;
|
|
21
21
|
@property (nonatomic, readonly) BOOL handleApplicationNotifications;
|
|
22
|
-
@property (nonatomic, readonly) BOOL isWebDebuggable;
|
|
23
22
|
@property (nonatomic, readonly) BOOL cordovaDeployDisabled;
|
|
24
23
|
@property (nonatomic, readonly) UIScrollViewContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior;
|
|
25
24
|
@property (nonatomic, readonly, nonnull) NSURL *appLocation;
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
_limitsNavigationsToAppBoundDomains = descriptor.limitsNavigationsToAppBoundDomains;
|
|
38
38
|
_preferredContentMode = descriptor.preferredContentMode;
|
|
39
39
|
_pluginConfigurations = descriptor.pluginConfigurations;
|
|
40
|
-
_isWebDebuggable = descriptor.isWebDebuggable;
|
|
41
40
|
_legacyConfig = descriptor.legacyConfig;
|
|
42
41
|
// construct the necessary URLs
|
|
43
42
|
_localURL = [[NSURL alloc] initWithString:[NSString stringWithFormat:@"%@://%@", descriptor.urlScheme, descriptor.urlHostname]];
|
|
@@ -68,7 +67,6 @@
|
|
|
68
67
|
_scrollingEnabled = configuration.scrollingEnabled;
|
|
69
68
|
_allowLinkPreviews = configuration.allowLinkPreviews;
|
|
70
69
|
_handleApplicationNotifications = configuration.handleApplicationNotifications;
|
|
71
|
-
_isWebDebuggable = configuration.isWebDebuggable;
|
|
72
70
|
_cordovaDeployDisabled = configuration.cordovaDeployDisabled;
|
|
73
71
|
_contentInsetAdjustmentBehavior = configuration.contentInsetAdjustmentBehavior;
|
|
74
72
|
// we don't care about internal usage of deprecated APIs and the framework should build cleanly
|
|
@@ -93,11 +93,6 @@ NS_SWIFT_NAME(InstanceDescriptor)
|
|
|
93
93
|
@discussion Defaults to @c true. Required to be @c true for notification plugins to work correctly. Set to @c false if your application will handle notifications independently.
|
|
94
94
|
*/
|
|
95
95
|
@property (nonatomic, assign) BOOL handleApplicationNotifications;
|
|
96
|
-
/**
|
|
97
|
-
@brief Enables web debugging by setting isInspectable of @c WKWebView to @c true on iOS 16.4 and greater
|
|
98
|
-
@discussion Defaults to true in debug mode and false in production
|
|
99
|
-
*/
|
|
100
|
-
@property (nonatomic, assign) BOOL isWebDebuggable;
|
|
101
96
|
/**
|
|
102
97
|
@brief How the web view will inset its content
|
|
103
98
|
@discussion Set by @c ios.contentInset in the configuration file. Corresponds to @c contentInsetAdjustmentBehavior on WKWebView.
|
|
@@ -39,7 +39,6 @@ NSString* const CAPInstanceDescriptorDefaultHostname = @"localhost";
|
|
|
39
39
|
_scrollingEnabled = YES;
|
|
40
40
|
_allowLinkPreviews = YES;
|
|
41
41
|
_handleApplicationNotifications = YES;
|
|
42
|
-
_isWebDebuggable = NO;
|
|
43
42
|
_contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
|
44
43
|
_appLocation = location;
|
|
45
44
|
_limitsNavigationsToAppBoundDomains = FALSE;
|
|
@@ -134,13 +134,6 @@ internal extension InstanceDescriptor {
|
|
|
134
134
|
if let handleNotifications = config[keyPath: "ios.handleApplicationNotifications"] as? Bool {
|
|
135
135
|
handleApplicationNotifications = handleNotifications
|
|
136
136
|
}
|
|
137
|
-
if let webContentsDebuggingEnabled = config[keyPath: "ios.webContentsDebuggingEnabled"] as? Bool {
|
|
138
|
-
isWebDebuggable = webContentsDebuggingEnabled
|
|
139
|
-
} else {
|
|
140
|
-
#if DEBUG
|
|
141
|
-
isWebDebuggable = true
|
|
142
|
-
#endif
|
|
143
|
-
}
|
|
144
137
|
}
|
|
145
138
|
}
|
|
146
139
|
// swiftlint:enable cyclomatic_complexity
|
|
@@ -209,8 +209,6 @@ internal class CapacitorBridge: NSObject, CAPBridgeProtocol {
|
|
|
209
209
|
observers.append(NotificationCenter.default.addObserver(forName: type(of: self).tmpVCAppeared.name, object: .none, queue: .none) { [weak self] _ in
|
|
210
210
|
self?.tmpWindow = nil
|
|
211
211
|
})
|
|
212
|
-
|
|
213
|
-
self.setupWebDebugging(configuration: configuration)
|
|
214
212
|
}
|
|
215
213
|
|
|
216
214
|
deinit {
|
|
@@ -420,15 +418,6 @@ internal class CapacitorBridge: NSObject, CAPBridgeProtocol {
|
|
|
420
418
|
return "\(type(of: self).capacitorSite)docs/\(url)"
|
|
421
419
|
}
|
|
422
420
|
|
|
423
|
-
private func setupWebDebugging(configuration: InstanceConfiguration) {
|
|
424
|
-
let isWebDebuggable = configuration.isWebDebuggable
|
|
425
|
-
if isWebDebuggable, #unavailable(iOS 16.4) {
|
|
426
|
-
CAPLog.print("⚡️ Warning: isWebDebuggable only functions as intended on iOS 16.4 and above.")
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
self.webView?.setInspectableIfRequired(isWebDebuggable)
|
|
430
|
-
}
|
|
431
|
-
|
|
432
421
|
/**
|
|
433
422
|
Handle a call from JavaScript. First, find the corresponding plugin, construct a selector,
|
|
434
423
|
and perform that selector on the plugin instance.
|
|
@@ -13,16 +13,3 @@
|
|
|
13
13
|
[self _swizzleKeyboardMethods];
|
|
14
14
|
}
|
|
15
15
|
@end
|
|
16
|
-
|
|
17
|
-
// TODO: Remove this after Xcode 14.3 is required
|
|
18
|
-
@implementation WKWebView (CapacitorInspectablity)
|
|
19
|
-
|
|
20
|
-
- (void)setInspectableIfRequired: (BOOL)shouldInspect {
|
|
21
|
-
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 160400
|
|
22
|
-
if (@available(iOS 16.4, *)) {
|
|
23
|
-
self.inspectable = shouldInspect;
|
|
24
|
-
}
|
|
25
|
-
#endif
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/ios",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-dev-20230414T142519.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)",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "7a01840985193bb9d566aeba4aedcaee3d0eaa6e"
|
|
34
34
|
}
|