@capgo/capacitor-bluetooth-low-energy 8.2.0 → 8.2.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/README.md CHANGED
@@ -1,12 +1,29 @@
1
1
  # @capgo/capacitor-bluetooth-low-energy
2
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-bluetooth-low-energy" alt="Capgo - Instant updates for Capacitor" /></a>
2
+
3
+ Talk to Bluetooth Low Energy devices from your Capacitor app: scan, connect, read and write characteristics and subscribe to notifications on iOS, Android and the web. You can also advertise as a peripheral.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_bluetooth_low_energy"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-bluetooth-low-energy" alt="Capgo - Instant updates for Capacitor" /></a>
3
6
 
4
7
  <div align="center">
5
- <h2><a href="https://capgo.app/?ref=plugin_bluetooth_low_energy"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
- <h2><a href="https://capgo.app/consulting/?ref=plugin_bluetooth_low_energy"> Missing a feature? We'll build the plugin for you 💪</a></h2>
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_bluetooth_low_energy">➡️ 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_bluetooth_low_energy">Missing a feature? We'll build the plugin for you 💪</a></p>
7
12
  </div>
8
13
 
9
- Bluetooth Low Energy (BLE) plugin for Capacitor with support for scanning, connecting, reading, writing, and notifications.
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-bluetooth-low-energy/main/assets/github-social-preview.png" alt="@capgo/capacitor-bluetooth-low-energy for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
19
+
20
+ - **Scanning**: `startScan()` and `stopScan()` with a `deviceScanned` event.
21
+ - **Connections**: `connect()`, `disconnect()`, `getConnectedDevices()` and `deviceConnected` or `deviceDisconnected` events.
22
+ - **GATT access**: `discoverServices()`, `getServices()`, `readCharacteristic()` and `writeCharacteristic()`.
23
+ - **Notifications**: `startCharacteristicNotifications()` with the `characteristicChanged` event.
24
+ - **Peripheral mode**: `startAdvertising()` turns the device into a BLE server, with read and write request events.
25
+ - **Setup helpers**: `isAvailable()`, `isEnabled()`, permissions, and Android bonding and settings shortcuts.
26
+ - **Platforms**: iOS, Android and Web. iOS uses Core Bluetooth, Android uses the Bluetooth LE APIs, and web uses Web Bluetooth where the browser supports it.
10
27
 
11
28
  ## Why Capacitor Bluetooth Low Energy?
12
29
 
@@ -77,7 +77,7 @@ import java.util.UUID;
77
77
  )
78
78
  public class BluetoothLowEnergyPlugin extends Plugin {
79
79
 
80
- private final String pluginVersion = "8.2.0";
80
+ private final String pluginVersion = "8.2.2";
81
81
  private BluetoothManager bluetoothManager;
82
82
  private BluetoothAdapter bluetoothAdapter;
83
83
  private BluetoothLeScanner bluetoothLeScanner;
@@ -5,7 +5,7 @@ import CoreBluetooth
5
5
  // swiftlint:disable type_body_length file_length
6
6
  @objc(BluetoothLowEnergyPlugin)
7
7
  public class BluetoothLowEnergyPlugin: CAPPlugin, CAPBridgedPlugin {
8
- private let pluginVersion: String = "8.2.0"
8
+ private let pluginVersion: String = "8.2.2"
9
9
  public let identifier = "BluetoothLowEnergyPlugin"
10
10
  public let jsName = "BluetoothLowEnergy"
11
11
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-bluetooth-low-energy",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "Bluetooth Low Energy (BLE) plugin for Capacitor with support for scanning, connecting, reading, writing, and notifications.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -49,8 +49,10 @@
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": "bun scripts/check-cap9-deprecated.mjs",
52
53
  "example:install": "cd example-app && bun install --frozen-lockfile",
53
- "example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build"
54
+ "example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
55
+ "changelog:ai": "node scripts/generate-ai-changelog.mjs"
54
56
  },
55
57
  "devDependencies": {
56
58
  "@capacitor/android": "^8.0.0",