@onekeyfe/react-native-capture-protection 6.7.0-20 → 6.7.0-22
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/docs/SPEC.md
CHANGED
|
@@ -66,6 +66,11 @@ are retained. No storage, persistence, cache, migrations or network access.
|
|
|
66
66
|
| Recording event | UIScreen capture change notification | Upstream-derived virtual-display heuristic |
|
|
67
67
|
| Permissions | None | DETECT_SCREEN_CAPTURE, normal permission, Android 14+ |
|
|
68
68
|
|
|
69
|
+
iOS adds the app-switcher window only on resign/background notifications, or on
|
|
70
|
+
prevent while the app is already in `.background`. Prevent during transient
|
|
71
|
+
`.inactive` (Face ID, system alerts, Control Center) must not cover the visible
|
|
72
|
+
page; the window is removed on didBecomeActive.
|
|
73
|
+
|
|
69
74
|
Android below 14 intentionally has no screenshot notification; blocking remains
|
|
70
75
|
available. Android virtual-display events are a heuristic and may also represent
|
|
71
76
|
casting/external displays; they are not proof that a recording was made.
|
|
@@ -100,7 +105,8 @@ disposal and secure-layer owner isolation; physical capture acceptance remains
|
|
|
100
105
|
separate.
|
|
101
106
|
Required runtime acceptance: prevent/allow, nested sensitive pages, repeated
|
|
102
107
|
navigation, recording started before/after subscription, background snapshots,
|
|
103
|
-
|
|
108
|
+
prevent right after Face ID (no blank overlay), activity recreation, subscription
|
|
109
|
+
cleanup, and main/background object isolation.
|
|
104
110
|
Inspect merged Android manifest and packaged iOS plist for media-read permissions.
|
|
105
111
|
Build/type/unit results do not prove screenshot prevention on physical devices.
|
|
106
112
|
|
|
@@ -104,7 +104,10 @@ private final class CaptureProtectionCoordinator {
|
|
|
104
104
|
owners.insert(owner)
|
|
105
105
|
startObservers()
|
|
106
106
|
refreshRecording()
|
|
107
|
-
|
|
107
|
+
// `.inactive` is transient (Face ID, system alerts, Control Center) and the app is
|
|
108
|
+
// still on screen, so covering it here blanks the page until didBecomeActive; the
|
|
109
|
+
// resign/background observers already cover real app-switcher transitions.
|
|
110
|
+
if UIApplication.shared.applicationState == .background { showSwitcher() }
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
func allow(owner: UUID) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-capture-protection",
|
|
3
|
-
"version": "6.7.0-
|
|
3
|
+
"version": "6.7.0-22",
|
|
4
4
|
"description": "Permission-minimal screenshot, recording and app-switcher protection",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
"@eslint/compat": "^1.3.2",
|
|
72
72
|
"@eslint/eslintrc": "^3.3.1",
|
|
73
73
|
"@eslint/js": "^9.35.0",
|
|
74
|
-
"@react-native/babel-preset": "0.
|
|
75
|
-
"@react-native/eslint-config": "0.
|
|
74
|
+
"@react-native/babel-preset": "0.88.0",
|
|
75
|
+
"@react-native/eslint-config": "0.88.0",
|
|
76
76
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
77
77
|
"@types/jest": "^29.5.14",
|
|
78
|
-
"@types/react": "^19.
|
|
78
|
+
"@types/react": "^19.3.0",
|
|
79
79
|
"commitlint": "^19.8.1",
|
|
80
80
|
"del-cli": "^6.0.0",
|
|
81
81
|
"eslint": "^9.35.0",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"lefthook": "^2.0.3",
|
|
86
86
|
"nitrogen": "0.37.0",
|
|
87
87
|
"prettier": "^2.8.8",
|
|
88
|
-
"react": "19.
|
|
89
|
-
"react-native": "patch:react-native@npm%3A0.
|
|
88
|
+
"react": "19.3.0",
|
|
89
|
+
"react-native": "patch:react-native@npm%3A0.88.0#~/.yarn/patches/react-native-npm-0.88.0-60c6201dd2.patch",
|
|
90
90
|
"react-native-builder-bob": "^0.40.13",
|
|
91
91
|
"react-native-nitro-modules": "0.37.0",
|
|
92
92
|
"release-it": "^19.0.4",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"useTabs": false
|
|
132
132
|
},
|
|
133
133
|
"jest": {
|
|
134
|
-
"preset": "react-native",
|
|
134
|
+
"preset": "@react-native/jest-preset",
|
|
135
135
|
"modulePathIgnorePatterns": [
|
|
136
136
|
"<rootDir>/example/node_modules",
|
|
137
137
|
"<rootDir>/lib/"
|