@capgo/capacitor-ibeacon 8.1.25 → 8.1.27
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
|
@@ -25,6 +25,20 @@ The most complete doc is available here: https://capgo.app/docs/plugins/ibeacon/
|
|
|
25
25
|
|
|
26
26
|
## Install
|
|
27
27
|
|
|
28
|
+
You can use our AI-Assisted Setup to install the plugin. Add the Capgo skills to your AI tool using the following command:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx skills add https://github.com/cap-go/capacitor-skills --skill capacitor-plugins
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then use the following prompt:
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
Use the `capacitor-plugins` skill from `cap-go/capacitor-skills` to install the `@capgo/capacitor-ibeacon` plugin in my project.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:
|
|
41
|
+
|
|
28
42
|
```bash
|
|
29
43
|
npm install @capgo/capacitor-ibeacon
|
|
30
44
|
npx cap sync
|
|
@@ -43,7 +43,7 @@ import org.altbeacon.beacon.Region;
|
|
|
43
43
|
)
|
|
44
44
|
public class CapacitorIbeaconPlugin extends Plugin implements BeaconConsumer {
|
|
45
45
|
|
|
46
|
-
private final String pluginVersion = "8.1.
|
|
46
|
+
private final String pluginVersion = "8.1.27";
|
|
47
47
|
private static final String FOREGROUND_CHANNEL_ID = "beacon_service_channel";
|
|
48
48
|
private static final int FOREGROUND_NOTIFICATION_ID = 456;
|
|
49
49
|
private BeaconManager beaconManager;
|
|
@@ -4,7 +4,7 @@ import CoreLocation
|
|
|
4
4
|
|
|
5
5
|
@objc(CapacitorIbeaconPlugin)
|
|
6
6
|
public class CapacitorIbeaconPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
7
|
-
private let pluginVersion: String = "8.1.
|
|
7
|
+
private let pluginVersion: String = "8.1.27"
|
|
8
8
|
public let identifier = "CapacitorIbeaconPlugin"
|
|
9
9
|
public let jsName = "CapacitorIbeacon"
|
|
10
10
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-ibeacon",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.27",
|
|
4
4
|
"description": "iBeacon plugin for Capacitor - proximity detection and beacon region monitoring",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -52,8 +52,11 @@
|
|
|
52
52
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
53
53
|
"clean": "rimraf ./dist",
|
|
54
54
|
"watch": "tsc --watch",
|
|
55
|
-
"prepublishOnly": "
|
|
56
|
-
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs"
|
|
55
|
+
"prepublishOnly": "bun run build",
|
|
56
|
+
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
|
|
57
|
+
"example:install": "cd example-app && bun install --frozen-lockfile",
|
|
58
|
+
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
|
|
59
|
+
"example:capgo:deploy": "bun run example:build && bun scripts/deploy-example-capgo.mjs"
|
|
57
60
|
},
|
|
58
61
|
"devDependencies": {
|
|
59
62
|
"@capacitor/android": "^8.0.0",
|