capacitor-signal-strength 0.0.1 → 1.0.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/CapacitorSignalStrength.podspec +17 -17
- package/README.md +72 -133
- package/android/build.gradle +52 -58
- package/android/src/main/AndroidManifest.xml +4 -5
- package/android/src/main/java/com/gbvp/androidsignalstrength/SignalStrength.java +124 -131
- package/android/src/main/java/com/gbvp/androidsignalstrength/SignalStrengthPlugin.java +127 -182
- package/dist/esm/definitions.d.ts +13 -14
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.js.map +1 -1
- package/ios/Plugin/Info.plist +24 -24
- package/ios/Plugin/SignalStrength.swift +8 -8
- package/ios/Plugin/SignalStrengthPlugin.h +10 -10
- package/ios/Plugin/SignalStrengthPlugin.m +8 -8
- package/ios/Plugin/SignalStrengthPlugin.swift +18 -18
- package/package.json +76 -82
- package/dist/docs.json +0 -196
package/package.json
CHANGED
|
@@ -1,82 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "capacitor-signal-strength",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "Plugin use to get Android device signal strength",
|
|
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
|
-
"CapacitorSignalStrength.podspec"
|
|
15
|
-
],
|
|
16
|
-
"author": "Gianpierre Velasquez - Mx",
|
|
17
|
-
"license": "MIT",
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/gianpierreVelasquez/Capacitor-AndroidDeviceSignalStrength.git.git"
|
|
21
|
-
},
|
|
22
|
-
"bugs": {
|
|
23
|
-
"url": "https://github.com/gianpierreVelasquez/Capacitor-AndroidDeviceSignalStrength.git/issues"
|
|
24
|
-
},
|
|
25
|
-
"keywords": [
|
|
26
|
-
"capacitor",
|
|
27
|
-
"plugin",
|
|
28
|
-
"native"
|
|
29
|
-
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
32
|
-
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
|
|
33
|
-
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
34
|
-
"verify:web": "npm run build",
|
|
35
|
-
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
36
|
-
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
37
|
-
"eslint": "eslint . --ext ts",
|
|
38
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
39
|
-
"swiftlint": "node-swiftlint",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@capacitor/
|
|
48
|
-
"@capacitor/core": "^
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@ionic/
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
"dependencies": {
|
|
79
|
-
"@capacitor/cli": "^5.6.0",
|
|
80
|
-
"@capacitor/network": "^5.0.6"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "capacitor-signal-strength",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Plugin use to get Android device signal strength",
|
|
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
|
+
"CapacitorSignalStrength.podspec"
|
|
15
|
+
],
|
|
16
|
+
"author": "Gianpierre Velasquez - Mx",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/gianpierreVelasquez/Capacitor-AndroidDeviceSignalStrength.git.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/gianpierreVelasquez/Capacitor-AndroidDeviceSignalStrength.git/issues"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"capacitor",
|
|
27
|
+
"plugin",
|
|
28
|
+
"native"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
32
|
+
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
|
|
33
|
+
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
34
|
+
"verify:web": "npm run build",
|
|
35
|
+
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
36
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
37
|
+
"eslint": "eslint . --ext ts",
|
|
38
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
39
|
+
"swiftlint": "node-swiftlint",
|
|
40
|
+
"build": "npm run clean && tsc && rollup -c rollup.config.js",
|
|
41
|
+
"clean": "rimraf ./dist",
|
|
42
|
+
"watch": "tsc --watch",
|
|
43
|
+
"prepublishOnly": "npm run build",
|
|
44
|
+
"dev:test": "npm run build && npm pack"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@capacitor/cli": "^8.0.0",
|
|
48
|
+
"@capacitor/core": "^8.0.0",
|
|
49
|
+
"@ionic/eslint-config": "^0.3.0",
|
|
50
|
+
"@ionic/prettier-config": "^1.0.1",
|
|
51
|
+
"@ionic/swiftlint-config": "^1.1.2",
|
|
52
|
+
"eslint": "^7.11.0",
|
|
53
|
+
"prettier": "~2.3.0",
|
|
54
|
+
"prettier-plugin-java": "~1.0.2",
|
|
55
|
+
"rimraf": "^3.0.2",
|
|
56
|
+
"rollup": "^2.32.0",
|
|
57
|
+
"swiftlint": "^1.0.1",
|
|
58
|
+
"typescript": "~4.3.5"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"@capacitor/core": ">=5.0.0 <9.0.0"
|
|
62
|
+
},
|
|
63
|
+
"prettier": "@ionic/prettier-config",
|
|
64
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
65
|
+
"eslintConfig": {
|
|
66
|
+
"extends": "@ionic/eslint-config/recommended"
|
|
67
|
+
},
|
|
68
|
+
"capacitor": {
|
|
69
|
+
"ios": {
|
|
70
|
+
"src": "ios"
|
|
71
|
+
},
|
|
72
|
+
"android": {
|
|
73
|
+
"src": "android"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
package/dist/docs.json
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"api": {
|
|
3
|
-
"name": "SignalStrengthPlugin",
|
|
4
|
-
"slug": "signalstrengthplugin",
|
|
5
|
-
"docs": "",
|
|
6
|
-
"tags": [],
|
|
7
|
-
"methods": [
|
|
8
|
-
{
|
|
9
|
-
"name": "getdBm",
|
|
10
|
-
"signature": "() => Promise<DBm>",
|
|
11
|
-
"parameters": [],
|
|
12
|
-
"returns": "Promise<DBm>",
|
|
13
|
-
"tags": [],
|
|
14
|
-
"docs": "",
|
|
15
|
-
"complexTypes": [
|
|
16
|
-
"DBm"
|
|
17
|
-
],
|
|
18
|
-
"slug": "getdbm"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "getPercentage",
|
|
22
|
-
"signature": "(options: { connection: ConnectionType; }) => Promise<Percentage>",
|
|
23
|
-
"parameters": [
|
|
24
|
-
{
|
|
25
|
-
"name": "options",
|
|
26
|
-
"docs": "",
|
|
27
|
-
"type": "{ connection: ConnectionType; }"
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"returns": "Promise<Percentage>",
|
|
31
|
-
"tags": [],
|
|
32
|
-
"docs": "",
|
|
33
|
-
"complexTypes": [
|
|
34
|
-
"Percentage",
|
|
35
|
-
"ConnectionType"
|
|
36
|
-
],
|
|
37
|
-
"slug": "getpercentage"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "getLevel",
|
|
41
|
-
"signature": "() => Promise<Level>",
|
|
42
|
-
"parameters": [],
|
|
43
|
-
"returns": "Promise<Level>",
|
|
44
|
-
"tags": [],
|
|
45
|
-
"docs": "",
|
|
46
|
-
"complexTypes": [
|
|
47
|
-
"Level"
|
|
48
|
-
],
|
|
49
|
-
"slug": "getlevel"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "checkPermissions",
|
|
53
|
-
"signature": "() => Promise<PermissionStatus>",
|
|
54
|
-
"parameters": [],
|
|
55
|
-
"returns": "Promise<PermissionStatus>",
|
|
56
|
-
"tags": [],
|
|
57
|
-
"docs": "",
|
|
58
|
-
"complexTypes": [
|
|
59
|
-
"PermissionStatus"
|
|
60
|
-
],
|
|
61
|
-
"slug": "checkpermissions"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "requestPermissions",
|
|
65
|
-
"signature": "() => Promise<PermissionStatus>",
|
|
66
|
-
"parameters": [],
|
|
67
|
-
"returns": "Promise<PermissionStatus>",
|
|
68
|
-
"tags": [],
|
|
69
|
-
"docs": "",
|
|
70
|
-
"complexTypes": [
|
|
71
|
-
"PermissionStatus"
|
|
72
|
-
],
|
|
73
|
-
"slug": "requestpermissions"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"properties": []
|
|
77
|
-
},
|
|
78
|
-
"interfaces": [
|
|
79
|
-
{
|
|
80
|
-
"name": "DBm",
|
|
81
|
-
"slug": "dbm",
|
|
82
|
-
"docs": "",
|
|
83
|
-
"tags": [],
|
|
84
|
-
"methods": [],
|
|
85
|
-
"properties": [
|
|
86
|
-
{
|
|
87
|
-
"name": "dBm",
|
|
88
|
-
"tags": [],
|
|
89
|
-
"docs": "",
|
|
90
|
-
"complexTypes": [],
|
|
91
|
-
"type": "number"
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"name": "Percentage",
|
|
97
|
-
"slug": "percentage",
|
|
98
|
-
"docs": "",
|
|
99
|
-
"tags": [],
|
|
100
|
-
"methods": [],
|
|
101
|
-
"properties": [
|
|
102
|
-
{
|
|
103
|
-
"name": "percentage",
|
|
104
|
-
"tags": [],
|
|
105
|
-
"docs": "",
|
|
106
|
-
"complexTypes": [],
|
|
107
|
-
"type": "string"
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "Level",
|
|
113
|
-
"slug": "level",
|
|
114
|
-
"docs": "",
|
|
115
|
-
"tags": [],
|
|
116
|
-
"methods": [],
|
|
117
|
-
"properties": [
|
|
118
|
-
{
|
|
119
|
-
"name": "level",
|
|
120
|
-
"tags": [],
|
|
121
|
-
"docs": "",
|
|
122
|
-
"complexTypes": [],
|
|
123
|
-
"type": "number"
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"name": "PermissionStatus",
|
|
129
|
-
"slug": "permissionstatus",
|
|
130
|
-
"docs": "",
|
|
131
|
-
"tags": [],
|
|
132
|
-
"methods": [],
|
|
133
|
-
"properties": [
|
|
134
|
-
{
|
|
135
|
-
"name": "info",
|
|
136
|
-
"tags": [],
|
|
137
|
-
"docs": "",
|
|
138
|
-
"complexTypes": [
|
|
139
|
-
"PermissionState"
|
|
140
|
-
],
|
|
141
|
-
"type": "PermissionState"
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
"enums": [],
|
|
147
|
-
"typeAliases": [
|
|
148
|
-
{
|
|
149
|
-
"name": "ConnectionType",
|
|
150
|
-
"slug": "connectiontype",
|
|
151
|
-
"docs": "The type of network connection that a device might have.",
|
|
152
|
-
"types": [
|
|
153
|
-
{
|
|
154
|
-
"text": "'wifi'",
|
|
155
|
-
"complexTypes": []
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"text": "'cellular'",
|
|
159
|
-
"complexTypes": []
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"text": "'none'",
|
|
163
|
-
"complexTypes": []
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"text": "'unknown'",
|
|
167
|
-
"complexTypes": []
|
|
168
|
-
}
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"name": "PermissionState",
|
|
173
|
-
"slug": "permissionstate",
|
|
174
|
-
"docs": "",
|
|
175
|
-
"types": [
|
|
176
|
-
{
|
|
177
|
-
"text": "'prompt'",
|
|
178
|
-
"complexTypes": []
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"text": "'prompt-with-rationale'",
|
|
182
|
-
"complexTypes": []
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"text": "'granted'",
|
|
186
|
-
"complexTypes": []
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"text": "'denied'",
|
|
190
|
-
"complexTypes": []
|
|
191
|
-
}
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
"pluginConfigs": []
|
|
196
|
-
}
|