@leonardojc/capacitor-ioboard 1.1.0
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/CapacitorIoboard.podspec +13 -0
- package/LICENSE +21 -0
- package/README.md +292 -0
- package/android/build.gradle +39 -0
- package/android/src/main/AndroidManifest.xml +8 -0
- package/android/src/main/java/com/leonardojc/capacitor/ioboard/CapacitorIoboardPlugin.java +336 -0
- package/android/src/main/java/com/leonardojc/capacitor/ioboard/IOBoardManager.java +657 -0
- package/dist/esm/definitions.d.ts +154 -0
- package/dist/esm/definitions.js +43 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/protocol.d.ts +62 -0
- package/dist/esm/protocol.js +191 -0
- package/dist/esm/web.d.ts +17 -0
- package/dist/esm/web.js +167 -0
- package/dist/plugin.cjs.js +422 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +425 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/CapacitorIoboard.swift +8 -0
- package/ios/Plugin/CapacitorIoboardPlugin.m +15 -0
- package/ios/Plugin/CapacitorIoboardPlugin.swift +142 -0
- package/package.json +97 -0
package/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@leonardojc/capacitor-ioboard",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "A Capacitor plugin for controlling custom IOBOARD devices via RS485 serial communication with simplified native API",
|
|
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
|
+
"files": [
|
|
10
|
+
"android/src/main/",
|
|
11
|
+
"android/build.gradle",
|
|
12
|
+
"dist/",
|
|
13
|
+
"ios/Plugin/",
|
|
14
|
+
"CapacitorIoboard.podspec"
|
|
15
|
+
],
|
|
16
|
+
"author": "Leonardo JC",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/leonardojc/capacitor-ioboard.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/leonardojc/capacitor-ioboard/issues"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"capacitor",
|
|
27
|
+
"plugin",
|
|
28
|
+
"ioboard",
|
|
29
|
+
"rs485",
|
|
30
|
+
"serial",
|
|
31
|
+
"industrial",
|
|
32
|
+
"control",
|
|
33
|
+
"led",
|
|
34
|
+
"electromagnetic-lock",
|
|
35
|
+
"food-cabinet"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
39
|
+
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
|
|
40
|
+
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
41
|
+
"verify:web": "npm run build",
|
|
42
|
+
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
43
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
44
|
+
"eslint": "eslint . --ext ts",
|
|
45
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
46
|
+
"swiftlint": "node-swiftlint",
|
|
47
|
+
"docgen": "docgen --api CapacitorIoboardPlugin --output-readme README.md --output-json dist/docs.json",
|
|
48
|
+
"build": "npm run clean && tsc && rollup -c rollup.config.js",
|
|
49
|
+
"clean": "rimraf ./dist",
|
|
50
|
+
"watch": "tsc --watch",
|
|
51
|
+
"prepublishOnly": "npm run build",
|
|
52
|
+
"test": "jest",
|
|
53
|
+
"test:watch": "jest --watch",
|
|
54
|
+
"test:coverage": "jest --coverage"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@capacitor/android": "^6.0.0",
|
|
58
|
+
"@capacitor/core": "^6.0.0",
|
|
59
|
+
"@capacitor/docgen": "^0.0.18",
|
|
60
|
+
"@capacitor/ios": "^6.0.0",
|
|
61
|
+
"@ionic/eslint-config": "^0.3.0",
|
|
62
|
+
"@ionic/prettier-config": "^4.0.0",
|
|
63
|
+
"@ionic/swiftlint-config": "^1.1.2",
|
|
64
|
+
"@jest/types": "^29.6.3",
|
|
65
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
66
|
+
"@types/jest": "^29.5.14",
|
|
67
|
+
"eslint": "^7.11.0",
|
|
68
|
+
"jest": "^29.7.0",
|
|
69
|
+
"jest-environment-jsdom": "^30.1.2",
|
|
70
|
+
"prettier": "~3.0.3",
|
|
71
|
+
"prettier-plugin-java": "~2.5.0",
|
|
72
|
+
"rimraf": "^3.0.2",
|
|
73
|
+
"rollup": "^2.32.0",
|
|
74
|
+
"swiftlint": "^1.0.1",
|
|
75
|
+
"ts-jest": "^29.1.1",
|
|
76
|
+
"typescript": "~5.2.2"
|
|
77
|
+
},
|
|
78
|
+
"peerDependencies": {
|
|
79
|
+
"@capacitor/core": "^7.0.0"
|
|
80
|
+
},
|
|
81
|
+
"prettier": "@ionic/prettier-config",
|
|
82
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
83
|
+
"eslintConfig": {
|
|
84
|
+
"extends": "@ionic/eslint-config/recommended"
|
|
85
|
+
},
|
|
86
|
+
"capacitor": {
|
|
87
|
+
"ios": {
|
|
88
|
+
"src": "ios"
|
|
89
|
+
},
|
|
90
|
+
"android": {
|
|
91
|
+
"src": "android"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"engines": {
|
|
95
|
+
"node": ">=16.0.0"
|
|
96
|
+
}
|
|
97
|
+
}
|