@capgo/capacitor-proximity 8.1.10 → 8.1.13

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.
Files changed (2) hide show
  1. package/README.md +19 -4
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,12 +1,27 @@
1
1
  # @capgo/capacitor-proximity
2
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-proximity" alt="Capgo - Instant updates for Capacitor" /></a>
2
+
3
+ Blank or dim the screen when the phone is held to the ear, like the native phone app, for calls and voice messages in your Capacitor app.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_proximity"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-proximity" alt="Capgo - Instant updates for Capacitor" /></a>
3
6
 
4
7
  <div align="center">
5
- <h2><a href="https://capgo.app/?ref=plugin_proximity"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
- <h2><a href="https://capgo.app/consulting/?ref=plugin_proximity"> 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_proximity">➡️ 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_proximity">Missing a feature? We'll build the plugin for you 💪</a></p>
7
12
  </div>
8
13
 
9
- Capacitor plugin for enabling proximity monitoring in mobile apps.
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-proximity/main/assets/github-social-preview.png" alt="@capgo/capacitor-proximity for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
19
+
20
+ - **Enable**: `enable()` starts proximity monitoring.
21
+ - **Disable**: `disable()` stops it.
22
+ - **Status**: `getStatus()` returns sensor availability and the enabled state.
23
+ - **Native sensors**: `UIDevice` proximity monitoring on iOS. On Android, the proximity sensor dims the screen to its lowest brightness while something is close.
24
+ - **Platforms**: iOS and Android. Not available on web.
10
25
 
11
26
  ## Why this plugin
12
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-proximity",
3
- "version": "8.1.10",
3
+ "version": "8.1.13",
4
4
  "description": "Capacitor plugin for enabling proximity monitoring in mobile apps.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -53,6 +53,7 @@
53
53
  "watch": "tsc --watch",
54
54
  "prepublishOnly": "bun run build",
55
55
  "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
56
+ "check:cap9-deprecated": "node scripts/check-cap9-deprecated.mjs",
56
57
  "example:install": "cd example-app && bun install --frozen-lockfile",
57
58
  "example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
58
59
  "changelog:ai": "node scripts/generate-ai-changelog.mjs"