@capgo/capacitor-wifi 8.5.1 → 8.5.3
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.
|
@@ -56,7 +56,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|
|
56
56
|
)
|
|
57
57
|
public class CapacitorWifiPlugin extends Plugin {
|
|
58
58
|
|
|
59
|
-
private final String pluginVersion = "8.5.
|
|
59
|
+
private final String pluginVersion = "8.5.3";
|
|
60
60
|
|
|
61
61
|
private WifiManager wifiManager;
|
|
62
62
|
private ConnectivityManager connectivityManager;
|
|
@@ -1103,7 +1103,7 @@ public class CapacitorWifiPlugin extends Plugin {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
1105
|
private Integer resolveTimeoutMs(PluginCall call) {
|
|
1106
|
-
if (!call.
|
|
1106
|
+
if (!call.getData().has("timeoutMs")) {
|
|
1107
1107
|
return DEFAULT_CONNECT_TIMEOUT_MS;
|
|
1108
1108
|
}
|
|
1109
1109
|
Integer timeoutMs = call.getInt("timeoutMs");
|
|
@@ -5,7 +5,7 @@ import CoreLocation
|
|
|
5
5
|
|
|
6
6
|
@objc(CapacitorWifiPlugin)
|
|
7
7
|
public class CapacitorWifiPlugin: CAPPlugin, CAPBridgedPlugin, CLLocationManagerDelegate {
|
|
8
|
-
private let pluginVersion: String = "8.5.
|
|
8
|
+
private let pluginVersion: String = "8.5.3"
|
|
9
9
|
public let identifier = "CapacitorWifiPlugin"
|
|
10
10
|
public let jsName = "CapacitorWifi"
|
|
11
11
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -380,7 +380,7 @@ public class CapacitorWifiPlugin: CAPPlugin, CAPBridgedPlugin, CLLocationManager
|
|
|
380
380
|
|
|
381
381
|
|
|
382
382
|
private func resolveTimeoutMs(_ call: CAPPluginCall) -> Double? {
|
|
383
|
-
|
|
383
|
+
guard let raw = call.getValue("timeoutMs"), !(raw is NSNull) else {
|
|
384
384
|
return defaultConnectTimeoutMs
|
|
385
385
|
}
|
|
386
386
|
if let value = call.getDouble("timeoutMs") {
|