@capgo/capacitor-wifi 8.5.3 → 8.5.5
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/README.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
# @capgo/capacitor-wifi
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Manage Wi-Fi from your Capacitor app: connect to networks, read the current SSID, IP and signal, and scan nearby networks on Android.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_wifi"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-wifi" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_wifi">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_wifi">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-wifi/main/assets/github-social-preview.png" alt="@capgo/capacitor-wifi for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Connect**: `connect()`, `addNetwork()` and `disconnect()`.
|
|
21
|
+
- **Current network**: `getSsid()`, `getIpAddress()` and `getWifiInfo()`.
|
|
22
|
+
- **Scanning on Android**: `startScan()`, `getAvailableNetworks()`, `getRssi()` and the `networksScanned` event.
|
|
23
|
+
- **Saved networks and sharing**: `isNetworkSaved()` and `shareNetwork()`.
|
|
24
|
+
- **Permissions**: location permission helpers. On Android, scans, SSID, RSSI and `getWifiInfo()` need location permission.
|
|
25
|
+
- **Platforms**: iOS and Android. iOS uses NetworkExtension hotspot configuration, so some calls are Android only. Not available on web.
|
|
10
26
|
|
|
11
27
|
## Why Capacitor WiFi?
|
|
12
28
|
|
|
@@ -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.5";
|
|
60
60
|
|
|
61
61
|
private WifiManager wifiManager;
|
|
62
62
|
private ConnectivityManager connectivityManager;
|
|
@@ -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.5"
|
|
9
9
|
public let identifier = "CapacitorWifiPlugin"
|
|
10
10
|
public let jsName = "CapacitorWifi"
|
|
11
11
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-wifi",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.5",
|
|
4
4
|
"description": "Manage WiFi connectivity for your Capacitor app",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"watch": "tsc --watch",
|
|
50
50
|
"prepublishOnly": "bun run build",
|
|
51
51
|
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
|
|
52
|
+
"check:cap9-deprecated": "node scripts/check-cap9-deprecated.mjs",
|
|
52
53
|
"example:install": "cd example-app && bun install --frozen-lockfile",
|
|
53
54
|
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
|
|
54
55
|
"changelog:ai": "node scripts/generate-ai-changelog.mjs"
|