@akilrafeek/capacitor-jailbreak-root-detection 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.
Files changed (33) hide show
  1. package/MeedikaCapacitorJailbreakRootDetection.podspec +17 -0
  2. package/README.md +78 -0
  3. package/android/build.gradle +59 -0
  4. package/android/src/main/AndroidManifest.xml +3 -0
  5. package/android/src/main/java/com/evehr/plugins/capacitor/jailbreakrootdetection/CapacitorJailbreakRootDetection.java +17 -0
  6. package/android/src/main/java/com/evehr/plugins/capacitor/jailbreakrootdetection/CapacitorJailbreakRootDetectionPlugin.java +66 -0
  7. package/android/src/main/java/com/evehr/plugins/capacitor/jailbreakrootdetection/Rooted/CheckApiVersion.java +5 -0
  8. package/android/src/main/java/com/evehr/plugins/capacitor/jailbreakrootdetection/Rooted/EmulatorDetector.java +162 -0
  9. package/android/src/main/java/com/evehr/plugins/capacitor/jailbreakrootdetection/Rooted/GreaterThan23.java +44 -0
  10. package/android/src/main/java/com/evehr/plugins/capacitor/jailbreakrootdetection/Rooted/LessThan23.java +50 -0
  11. package/android/src/main/java/com/evehr/plugins/capacitor/jailbreakrootdetection/Rooted/RootedCheck.java +89 -0
  12. package/android/src/main/res/.gitkeep +0 -0
  13. package/dist/docs.json +78 -0
  14. package/dist/esm/definitions.d.ts +9 -0
  15. package/dist/esm/definitions.js +2 -0
  16. package/dist/esm/definitions.js.map +1 -0
  17. package/dist/esm/index.d.ts +4 -0
  18. package/dist/esm/index.js +7 -0
  19. package/dist/esm/index.js.map +1 -0
  20. package/dist/esm/web.d.ts +8 -0
  21. package/dist/esm/web.js +22 -0
  22. package/dist/esm/web.js.map +1 -0
  23. package/dist/plugin.cjs.js +38 -0
  24. package/dist/plugin.cjs.js.map +1 -0
  25. package/dist/plugin.js +41 -0
  26. package/dist/plugin.js.map +1 -0
  27. package/ios/Plugin/CapacitorJailbreakRootDetection.swift +18 -0
  28. package/ios/Plugin/CapacitorJailbreakRootDetectionPlugin.h +10 -0
  29. package/ios/Plugin/CapacitorJailbreakRootDetectionPlugin.m +11 -0
  30. package/ios/Plugin/CapacitorJailbreakRootDetectionPlugin.swift +37 -0
  31. package/ios/Plugin/Info.plist +28 -0
  32. package/ios/Plugin/UIDeviceJailBroken.swift +100 -0
  33. package/package.json +344 -0
package/package.json ADDED
@@ -0,0 +1,344 @@
1
+ {
2
+ "name": "@akilrafeek/capacitor-jailbreak-root-detection",
3
+ "version": "1.0.0",
4
+ "description": "Jailbreak Root detection plugin for capacitor.",
5
+ "keywords": [
6
+ "capacitor",
7
+ "plugin",
8
+ "native"
9
+ ],
10
+ "homepage": "https://github.com/mauri-cg/capacitor-jailbreak-root-detection#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/mauri-cg/capacitor-jailbreak-root-detection.git/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/mauri-cg/capacitor-jailbreak-root-detection.git"
17
+ },
18
+ "license": "MIT",
19
+ "author": "Meedika",
20
+ "type": "module",
21
+ "main": "dist/plugin.cjs.js",
22
+ "types": "dist/esm/index.d.ts",
23
+ "directories": {
24
+ "example": "example"
25
+ },
26
+ "files": [
27
+ "android/src/main/",
28
+ "android/build.gradle",
29
+ "dist/",
30
+ "ios/Plugin/",
31
+ "MeedikaCapacitorJailbreakRootDetection.podspec"
32
+ ],
33
+ "scripts": {
34
+ "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
35
+ "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
36
+ "verify:android": "cd android && ./gradlew clean build test && cd ..",
37
+ "verify:web": "npm run build",
38
+ "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
39
+ "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
40
+ "eslint": "eslint . --ext ts",
41
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
42
+ "swiftlint": "node-swiftlint",
43
+ "docgen": "docgen --api CapacitorJailbreakRootDetectionPlugin --output-readme README.md --output-json dist/docs.json",
44
+ "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
45
+ "clean": "rimraf ./dist",
46
+ "watch": "tsc --watch",
47
+ "prepublishOnly": "npm run build"
48
+ },
49
+ "dependencies": {
50
+ "acorn": "^8.12.1",
51
+ "acorn-jsx": "^5.3.2",
52
+ "ajv": "^6.12.6",
53
+ "ansi-regex": "^5.0.1",
54
+ "ansi-styles": "^4.3.0",
55
+ "argparse": "^2.0.1",
56
+ "array-buffer-byte-length": "^1.0.1",
57
+ "array-includes": "^3.1.8",
58
+ "array-union": "^2.1.0",
59
+ "array.prototype.findlastindex": "^1.2.5",
60
+ "array.prototype.flat": "^1.3.2",
61
+ "array.prototype.flatmap": "^1.3.2",
62
+ "arraybuffer.prototype.slice": "^1.0.3",
63
+ "astral-regex": "^2.0.0",
64
+ "at-least-node": "^1.0.0",
65
+ "available-typed-arrays": "^1.0.7",
66
+ "balanced-match": "^1.0.2",
67
+ "base64-js": "^1.5.1",
68
+ "big-integer": "^1.6.52",
69
+ "bplist-parser": "^0.3.2",
70
+ "brace-expansion": "^1.1.11",
71
+ "braces": "^3.0.3",
72
+ "buffer-crc32": "^0.2.13",
73
+ "call-bind": "^1.0.7",
74
+ "callsites": "^3.1.0",
75
+ "chalk": "^4.1.2",
76
+ "chevrotain": "^6.5.0",
77
+ "chownr": "^2.0.0",
78
+ "color-convert": "^2.0.1",
79
+ "color-name": "^1.1.4",
80
+ "colorette": "^1.4.0",
81
+ "commander": "^9.5.0",
82
+ "concat-map": "^0.0.1",
83
+ "cosmiconfig": "^6.0.0",
84
+ "cross-spawn": "^7.0.3",
85
+ "data-view-buffer": "^1.0.1",
86
+ "data-view-byte-length": "^1.0.1",
87
+ "data-view-byte-offset": "^1.0.0",
88
+ "debug": "^4.3.5",
89
+ "deep-is": "^0.1.4",
90
+ "define-data-property": "^1.1.4",
91
+ "define-lazy-prop": "^2.0.0",
92
+ "define-properties": "^1.2.1",
93
+ "dir-glob": "^3.0.1",
94
+ "doctrine": "^3.0.0",
95
+ "elementtree": "^0.1.7",
96
+ "emoji-regex": "^8.0.0",
97
+ "env-paths": "^2.2.1",
98
+ "error-ex": "^1.3.2",
99
+ "es-abstract": "^1.23.3",
100
+ "es-define-property": "^1.0.0",
101
+ "es-errors": "^1.3.0",
102
+ "es-object-atoms": "^1.0.0",
103
+ "es-set-tostringtag": "^2.0.3",
104
+ "es-shim-unscopables": "^1.0.2",
105
+ "es-to-primitive": "^1.2.1",
106
+ "escape-string-regexp": "^4.0.0",
107
+ "eslint-config-prettier": "^8.10.0",
108
+ "eslint-import-resolver-node": "^0.3.9",
109
+ "eslint-module-utils": "^2.8.1",
110
+ "eslint-plugin-import": "^2.29.1",
111
+ "eslint-scope": "^5.1.1",
112
+ "eslint-visitor-keys": "^3.4.3",
113
+ "espree": "^9.6.1",
114
+ "esquery": "^1.6.0",
115
+ "esrecurse": "^4.3.0",
116
+ "estraverse": "^4.3.0",
117
+ "esutils": "^2.0.3",
118
+ "fast-deep-equal": "^3.1.3",
119
+ "fast-glob": "^3.3.2",
120
+ "fast-json-stable-stringify": "^2.1.0",
121
+ "fast-levenshtein": "^2.0.6",
122
+ "fastq": "^1.17.1",
123
+ "fd-slicer": "^1.1.0",
124
+ "file-entry-cache": "^6.0.1",
125
+ "fill-range": "^7.1.1",
126
+ "find-up": "^5.0.0",
127
+ "flat-cache": "^3.2.0",
128
+ "flatted": "^3.3.1",
129
+ "for-each": "^0.3.3",
130
+ "fs-extra": "^9.1.0",
131
+ "fs-minipass": "^2.1.0",
132
+ "fs.realpath": "^1.0.0",
133
+ "function-bind": "^1.1.2",
134
+ "function.prototype.name": "^1.1.6",
135
+ "functions-have-names": "^1.2.3",
136
+ "get-intrinsic": "^1.2.4",
137
+ "get-symbol-description": "^1.0.2",
138
+ "github-slugger": "^1.5.0",
139
+ "glob": "^7.2.3",
140
+ "glob-parent": "^6.0.2",
141
+ "globals": "^13.24.0",
142
+ "globalthis": "^1.0.4",
143
+ "globby": "^11.1.0",
144
+ "gopd": "^1.0.1",
145
+ "graceful-fs": "^4.2.11",
146
+ "graphemer": "^1.4.0",
147
+ "has-bigints": "^1.0.2",
148
+ "has-flag": "^4.0.0",
149
+ "has-property-descriptors": "^1.0.2",
150
+ "has-proto": "^1.0.3",
151
+ "has-symbols": "^1.0.3",
152
+ "has-tostringtag": "^1.0.2",
153
+ "hasown": "^2.0.2",
154
+ "ignore": "^5.3.1",
155
+ "import-fresh": "^3.3.0",
156
+ "imurmurhash": "^0.1.4",
157
+ "inflight": "^1.0.6",
158
+ "inherits": "^2.0.4",
159
+ "ini": "^4.1.3",
160
+ "internal-slot": "^1.0.7",
161
+ "is-array-buffer": "^3.0.4",
162
+ "is-arrayish": "^0.2.1",
163
+ "is-bigint": "^1.0.4",
164
+ "is-boolean-object": "^1.1.2",
165
+ "is-callable": "^1.2.7",
166
+ "is-core-module": "^2.15.0",
167
+ "is-data-view": "^1.0.1",
168
+ "is-date-object": "^1.0.5",
169
+ "is-docker": "^2.2.1",
170
+ "is-extglob": "^2.1.1",
171
+ "is-fullwidth-code-point": "^3.0.0",
172
+ "is-glob": "^4.0.3",
173
+ "is-negative-zero": "^2.0.3",
174
+ "is-number": "^7.0.0",
175
+ "is-number-object": "^1.0.7",
176
+ "is-path-inside": "^3.0.3",
177
+ "is-regex": "^1.1.4",
178
+ "is-shared-array-buffer": "^1.0.3",
179
+ "is-string": "^1.0.7",
180
+ "is-symbol": "^1.0.4",
181
+ "is-typed-array": "^1.1.13",
182
+ "is-weakref": "^1.0.2",
183
+ "is-wsl": "^2.2.0",
184
+ "isarray": "^2.0.5",
185
+ "isexe": "^2.0.0",
186
+ "java-parser": "^1.0.2",
187
+ "js-tokens": "^4.0.0",
188
+ "js-yaml": "^4.1.0",
189
+ "json-buffer": "^3.0.1",
190
+ "json-parse-even-better-errors": "^2.3.1",
191
+ "json-schema-traverse": "^0.4.1",
192
+ "json-stable-stringify-without-jsonify": "^1.0.1",
193
+ "json5": "^1.0.2",
194
+ "jsonfile": "^6.1.0",
195
+ "keyv": "^4.5.4",
196
+ "kleur": "^4.1.5",
197
+ "levn": "^0.4.1",
198
+ "lines-and-columns": "^1.2.4",
199
+ "locate-path": "^6.0.0",
200
+ "lodash": "^4.17.21",
201
+ "lodash.merge": "^4.6.2",
202
+ "lru-cache": "^10.4.3",
203
+ "merge2": "^1.4.1",
204
+ "micromatch": "^4.0.7",
205
+ "minimatch": "^3.1.2",
206
+ "minimist": "^1.2.8",
207
+ "minipass": "^5.0.0",
208
+ "minizlib": "^2.1.2",
209
+ "mkdirp": "^1.0.4",
210
+ "ms": "^2.1.2",
211
+ "native-run": "^2.0.1",
212
+ "natural-compare": "^1.4.0",
213
+ "natural-compare-lite": "^1.4.0",
214
+ "object-inspect": "^1.13.2",
215
+ "object-keys": "^1.1.1",
216
+ "object.assign": "^4.1.5",
217
+ "object.fromentries": "^2.0.8",
218
+ "object.groupby": "^1.0.3",
219
+ "object.values": "^1.2.0",
220
+ "once": "^1.4.0",
221
+ "open": "^8.4.2",
222
+ "optionator": "^0.9.4",
223
+ "p-limit": "^3.1.0",
224
+ "p-locate": "^5.0.0",
225
+ "parent-module": "^1.0.1",
226
+ "parse-json": "^5.2.0",
227
+ "path-exists": "^4.0.0",
228
+ "path-is-absolute": "^1.0.1",
229
+ "path-key": "^3.1.1",
230
+ "path-parse": "^1.0.7",
231
+ "path-scurry": "^1.11.1",
232
+ "path-type": "^4.0.0",
233
+ "pend": "^1.2.0",
234
+ "picocolors": "^1.0.1",
235
+ "picomatch": "^2.3.1",
236
+ "plist": "^3.1.0",
237
+ "possible-typed-array-names": "^1.0.0",
238
+ "prelude-ls": "^1.2.1",
239
+ "prompts": "^2.4.2",
240
+ "punycode": "^2.3.1",
241
+ "queue-microtask": "^1.2.3",
242
+ "readable-stream": "^3.6.2",
243
+ "regexp-to-ast": "^0.4.0",
244
+ "regexp.prototype.flags": "^1.5.2",
245
+ "resolve": "^1.22.8",
246
+ "resolve-from": "^4.0.0",
247
+ "reusify": "^1.0.4",
248
+ "run-parallel": "^1.2.0",
249
+ "safe-array-concat": "^1.1.2",
250
+ "safe-buffer": "^5.2.1",
251
+ "safe-regex-test": "^1.0.3",
252
+ "sax": "^1.1.4",
253
+ "semver": "^7.6.3",
254
+ "set-function-length": "^1.2.2",
255
+ "set-function-name": "^2.0.2",
256
+ "shebang-command": "^2.0.0",
257
+ "shebang-regex": "^3.0.0",
258
+ "side-channel": "^1.0.6",
259
+ "signal-exit": "^3.0.7",
260
+ "sisteransi": "^1.0.5",
261
+ "slash": "^3.0.0",
262
+ "slice-ansi": "^4.0.0",
263
+ "split2": "^4.2.0",
264
+ "string-width": "^4.2.3",
265
+ "string.prototype.trim": "^1.2.9",
266
+ "string.prototype.trimend": "^1.0.8",
267
+ "string.prototype.trimstart": "^1.0.8",
268
+ "string_decoder": "^1.3.0",
269
+ "strip-ansi": "^6.0.1",
270
+ "strip-bom": "^3.0.0",
271
+ "strip-json-comments": "^3.1.1",
272
+ "supports-color": "^7.2.0",
273
+ "supports-preserve-symlinks-flag": "^1.0.0",
274
+ "tar": "^6.2.1",
275
+ "text-table": "^0.2.0",
276
+ "through2": "^4.0.2",
277
+ "to-regex-range": "^5.0.1",
278
+ "tree-kill": "^1.2.2",
279
+ "tsconfig-paths": "^3.15.0",
280
+ "tslib": "^2.6.3",
281
+ "tsutils": "^3.21.0",
282
+ "type-check": "^0.4.0",
283
+ "type-fest": "^0.20.2",
284
+ "typed-array-buffer": "^1.0.2",
285
+ "typed-array-byte-length": "^1.0.1",
286
+ "typed-array-byte-offset": "^1.0.2",
287
+ "typed-array-length": "^1.0.6",
288
+ "unbox-primitive": "^1.0.2",
289
+ "universalify": "^2.0.1",
290
+ "untildify": "^4.0.0",
291
+ "uri-js": "^4.4.1",
292
+ "util-deprecate": "^1.0.2",
293
+ "which": "^2.0.2",
294
+ "which-boxed-primitive": "^1.0.2",
295
+ "which-typed-array": "^1.1.15",
296
+ "word-wrap": "^1.2.5",
297
+ "wrap-ansi": "^7.0.0",
298
+ "wrappy": "^1.0.2",
299
+ "xml2js": "^0.5.0",
300
+ "xmlbuilder": "^15.1.1",
301
+ "yallist": "^4.0.0",
302
+ "yaml": "^1.10.2",
303
+ "yauzl": "^2.10.0",
304
+ "yocto-queue": "^0.1.0"
305
+ },
306
+ "devDependencies": {
307
+ "@capacitor/android": "^6.0.0",
308
+ "@capacitor/cli": "^6.0.0",
309
+ "@capacitor/core": "^6.0.0",
310
+ "@capacitor/docgen": "^0.0.18",
311
+ "@capacitor/ios": "^6.0.0",
312
+ "@ionic/eslint-config": "^0.4.0",
313
+ "@ionic/prettier-config": "^1.0.1",
314
+ "@ionic/swiftlint-config": "^1.1.2",
315
+ "eslint": "^8.57.0",
316
+ "prettier": "~2.3.0",
317
+ "prettier-plugin-java": "~1.0.2",
318
+ "rimraf": "^3.0.2",
319
+ "rollup": "^2.32.0",
320
+ "swiftlint": "^1.0.1",
321
+ "typescript": "~4.1.5"
322
+ },
323
+ "peerDependencies": {
324
+ "@capacitor/core": "^6.0.0"
325
+ },
326
+ "publishConfig": {
327
+ "access": "public"
328
+ },
329
+ "module": "dist/esm/index.js",
330
+ "unpkg": "dist/plugin.js",
331
+ "prettier": "@ionic/prettier-config",
332
+ "swiftlint": "@ionic/swiftlint-config",
333
+ "eslintConfig": {
334
+ "extends": "@ionic/eslint-config/recommended"
335
+ },
336
+ "capacitor": {
337
+ "ios": {
338
+ "src": "ios"
339
+ },
340
+ "android": {
341
+ "src": "android"
342
+ }
343
+ }
344
+ }