@capacitor-community/bluetooth-le 8.0.0 → 8.0.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/CapacitorCommunityBluetoothLe.podspec +17 -17
- package/LICENSE +21 -21
- package/Package.swift +27 -27
- package/README.md +4 -2
- package/android/build.gradle +73 -73
- package/android/src/main/AndroidManifest.xml +22 -22
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/BluetoothLe.kt +1094 -1094
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/Conversion.kt +51 -51
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/Device.kt +771 -771
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/DeviceList.kt +28 -28
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/DeviceScanner.kt +189 -189
- package/dist/esm/bleClient.js.map +1 -1
- package/dist/esm/conversion.js.map +1 -1
- package/dist/esm/queue.js.map +1 -1
- package/dist/esm/validators.js.map +1 -1
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +41 -41
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +41 -41
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/BluetoothLe/Conversion.swift +83 -83
- package/ios/Sources/BluetoothLe/Device.swift +422 -423
- package/ios/Sources/BluetoothLe/DeviceListView.swift +121 -121
- package/ios/Sources/BluetoothLe/DeviceManager.swift +409 -503
- package/ios/Sources/BluetoothLe/Logging.swift +8 -8
- package/ios/Sources/BluetoothLe/Plugin.swift +768 -775
- package/ios/Sources/BluetoothLe/ScanFilters.swift +114 -0
- package/ios/Sources/BluetoothLe/ThreadSafeDictionary.swift +61 -15
- package/ios/Tests/BluetoothLeTests/ConversionTests.swift +55 -55
- package/ios/Tests/BluetoothLeTests/PluginTests.swift +27 -27
- package/ios/Tests/BluetoothLeTests/ScanFiltersTests.swift +153 -0
- package/package.json +114 -115
package/package.json
CHANGED
|
@@ -1,115 +1,114 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@capacitor-community/bluetooth-le",
|
|
3
|
-
"version": "8.0.
|
|
4
|
-
"description": "Capacitor plugin for Bluetooth Low Energy ",
|
|
5
|
-
"main": "dist/plugin.cjs.js",
|
|
6
|
-
"module": "dist/esm/index.js",
|
|
7
|
-
"types": "dist/esm/index.d.ts",
|
|
8
|
-
"unpkg": "dist/plugin.js",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
11
|
-
"verify:ios": "xcodebuild -scheme CapacitorCommunityBluetoothLe -destination
|
|
12
|
-
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
13
|
-
"verify:web": "npm run test:coverage && npm run build",
|
|
14
|
-
"lint": "npm run eslint && npm run prettier -- --check && npm run lint:ios",
|
|
15
|
-
"lint:ios": "npm run swiftlint -- lint ios",
|
|
16
|
-
"lint:android": "cd android && ./gradlew clean lint && cd ..",
|
|
17
|
-
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- lint --fix --format ios",
|
|
18
|
-
"eslint": "eslint . --ext ts",
|
|
19
|
-
"prettier": "prettier \"**/*.{css,html,ts,js}\"",
|
|
20
|
-
"swiftlint": "node-swiftlint",
|
|
21
|
-
"docgen": "docgen --api BleClientInterface --output-readme README.md --output-json dist/docs.json",
|
|
22
|
-
"postdocgen": "node scripts/fix-docgen-types.js && prettier README.md --write",
|
|
23
|
-
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
24
|
-
"clean": "rimraf ./dist",
|
|
25
|
-
"watch": "tsc --watch",
|
|
26
|
-
"prepublishOnly": "npm run build",
|
|
27
|
-
"test": "jest",
|
|
28
|
-
"test:coverage": "jest --coverage",
|
|
29
|
-
"test:watch": "jest --watch",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"release": "standard-version",
|
|
33
|
-
"release:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"@capacitor/
|
|
43
|
-
"@capacitor/
|
|
44
|
-
"@capacitor/
|
|
45
|
-
"@capacitor/
|
|
46
|
-
"@
|
|
47
|
-
"@ionic/
|
|
48
|
-
"@ionic/
|
|
49
|
-
"@
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"jest": "^29.3.1",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"android/
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"ios/
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@capacitor-community/bluetooth-le",
|
|
3
|
+
"version": "8.0.2",
|
|
4
|
+
"description": "Capacitor plugin for Bluetooth Low Energy ",
|
|
5
|
+
"main": "dist/plugin.cjs.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/esm/index.d.ts",
|
|
8
|
+
"unpkg": "dist/plugin.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
11
|
+
"verify:ios": "xcodebuild clean build test -scheme CapacitorCommunityBluetoothLe -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.5'",
|
|
12
|
+
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
13
|
+
"verify:web": "npm run test:coverage && npm run build",
|
|
14
|
+
"lint": "npm run eslint && npm run prettier -- --check && npm run lint:ios",
|
|
15
|
+
"lint:ios": "npm run swiftlint -- lint ios",
|
|
16
|
+
"lint:android": "cd android && ./gradlew clean lint && cd ..",
|
|
17
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- lint --fix --format ios",
|
|
18
|
+
"eslint": "eslint . --ext ts",
|
|
19
|
+
"prettier": "prettier \"**/*.{css,html,ts,js}\"",
|
|
20
|
+
"swiftlint": "node-swiftlint",
|
|
21
|
+
"docgen": "docgen --api BleClientInterface --output-readme README.md --output-json dist/docs.json",
|
|
22
|
+
"postdocgen": "node scripts/fix-docgen-types.js && prettier README.md --write",
|
|
23
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
24
|
+
"clean": "rimraf ./dist",
|
|
25
|
+
"watch": "tsc --watch",
|
|
26
|
+
"prepublishOnly": "npm run build",
|
|
27
|
+
"test": "jest",
|
|
28
|
+
"test:coverage": "jest --coverage",
|
|
29
|
+
"test:watch": "jest --watch",
|
|
30
|
+
"version:dev": "npm version --no-git-tag-version $(git describe)",
|
|
31
|
+
"release": "standard-version",
|
|
32
|
+
"release:minor": "standard-version -r minor",
|
|
33
|
+
"release:major": "standard-version -r major"
|
|
34
|
+
},
|
|
35
|
+
"author": "pwespi",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@types/web-bluetooth": "^0.0.20"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@capacitor/android": "^8.0.0",
|
|
42
|
+
"@capacitor/cli": "^8.0.0",
|
|
43
|
+
"@capacitor/core": "^8.0.0",
|
|
44
|
+
"@capacitor/docgen": "^0.3.1",
|
|
45
|
+
"@capacitor/ios": "^8.0.0",
|
|
46
|
+
"@ionic/eslint-config": "^0.4.0",
|
|
47
|
+
"@ionic/prettier-config": "^4.0.0",
|
|
48
|
+
"@ionic/swiftlint-config": "^2.0.0",
|
|
49
|
+
"@types/jest": "^29.2.5",
|
|
50
|
+
"eslint": "^8.57.1",
|
|
51
|
+
"jest": "^29.3.1",
|
|
52
|
+
"jest-environment-jsdom": "^29.3.1",
|
|
53
|
+
"prettier": "^3.6.2",
|
|
54
|
+
"rimraf": "^6.1.0",
|
|
55
|
+
"rollup": "^4.53.2",
|
|
56
|
+
"standard-version": "^9.5.0",
|
|
57
|
+
"swiftlint": "^2.0.0",
|
|
58
|
+
"ts-jest": "^29.0.3",
|
|
59
|
+
"typescript": "^5.9.3",
|
|
60
|
+
"prettier-plugin-java": "^2.7.7"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"@capacitor/core": ">=8.0.0"
|
|
64
|
+
},
|
|
65
|
+
"files": [
|
|
66
|
+
"android/src/main/",
|
|
67
|
+
"android/build.gradle",
|
|
68
|
+
"dist/",
|
|
69
|
+
"ios/Sources",
|
|
70
|
+
"ios/Tests",
|
|
71
|
+
"Package.swift",
|
|
72
|
+
"CapacitorCommunityBluetoothLe.podspec"
|
|
73
|
+
],
|
|
74
|
+
"keywords": [
|
|
75
|
+
"capacitor",
|
|
76
|
+
"plugin",
|
|
77
|
+
"native",
|
|
78
|
+
"bluetooth"
|
|
79
|
+
],
|
|
80
|
+
"capacitor": {
|
|
81
|
+
"ios": {
|
|
82
|
+
"src": "ios"
|
|
83
|
+
},
|
|
84
|
+
"android": {
|
|
85
|
+
"src": "android"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"prettier": "@ionic/prettier-config",
|
|
89
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
90
|
+
"eslintConfig": {
|
|
91
|
+
"extends": "@ionic/eslint-config/recommended",
|
|
92
|
+
"rules": {
|
|
93
|
+
"@typescript-eslint/no-unused-vars": [
|
|
94
|
+
"error",
|
|
95
|
+
{
|
|
96
|
+
"argsIgnorePattern": "^_",
|
|
97
|
+
"varsIgnorePattern": "^_",
|
|
98
|
+
"caughtErrorsIgnorePattern": "^_"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"repository": {
|
|
104
|
+
"type": "git",
|
|
105
|
+
"url": "https://github.com/capacitor-community/bluetooth-le"
|
|
106
|
+
},
|
|
107
|
+
"bugs": {
|
|
108
|
+
"url": "https://github.com/capacitor-community/bluetooth-le/issues"
|
|
109
|
+
},
|
|
110
|
+
"volta": {
|
|
111
|
+
"node": "22.13.1",
|
|
112
|
+
"npm": "11.0.0"
|
|
113
|
+
}
|
|
114
|
+
}
|