react-native-prod-debugger 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/LICENSE +21 -0
- package/README.md +350 -0
- package/lib/commonjs/core/DebugBubble.js +139 -0
- package/lib/commonjs/core/DebugBubble.js.map +1 -0
- package/lib/commonjs/core/DebugOverlay.js +184 -0
- package/lib/commonjs/core/DebugOverlay.js.map +1 -0
- package/lib/commonjs/core/DebuggerProvider.js +174 -0
- package/lib/commonjs/core/DebuggerProvider.js.map +1 -0
- package/lib/commonjs/core/GestureDetector.js +83 -0
- package/lib/commonjs/core/GestureDetector.js.map +1 -0
- package/lib/commonjs/core/PluginRegistry.js +124 -0
- package/lib/commonjs/core/PluginRegistry.js.map +1 -0
- package/lib/commonjs/core/theme.js +50 -0
- package/lib/commonjs/core/theme.js.map +1 -0
- package/lib/commonjs/core/types.js +6 -0
- package/lib/commonjs/core/types.js.map +1 -0
- package/lib/commonjs/core/useDebugger.js +27 -0
- package/lib/commonjs/core/useDebugger.js.map +1 -0
- package/lib/commonjs/core/utils.js +239 -0
- package/lib/commonjs/core/utils.js.map +1 -0
- package/lib/commonjs/index.js +132 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/plugins/console/ConsoleInterceptor.js +103 -0
- package/lib/commonjs/plugins/console/ConsoleInterceptor.js.map +1 -0
- package/lib/commonjs/plugins/console/ConsoleViewerPlugin.js +269 -0
- package/lib/commonjs/plugins/console/ConsoleViewerPlugin.js.map +1 -0
- package/lib/commonjs/plugins/crashReporter/CrashReporterPlugin.js +363 -0
- package/lib/commonjs/plugins/crashReporter/CrashReporterPlugin.js.map +1 -0
- package/lib/commonjs/plugins/customActions/CustomActionsPlugin.js +218 -0
- package/lib/commonjs/plugins/customActions/CustomActionsPlugin.js.map +1 -0
- package/lib/commonjs/plugins/customActions/actionStore.js +46 -0
- package/lib/commonjs/plugins/customActions/actionStore.js.map +1 -0
- package/lib/commonjs/plugins/deepLinkTester/DeepLinkTesterPlugin.js +268 -0
- package/lib/commonjs/plugins/deepLinkTester/DeepLinkTesterPlugin.js.map +1 -0
- package/lib/commonjs/plugins/deviceInfo/DeviceInfoPlugin.js +184 -0
- package/lib/commonjs/plugins/deviceInfo/DeviceInfoPlugin.js.map +1 -0
- package/lib/commonjs/plugins/featureFlags/FeatureFlagsPlugin.js +381 -0
- package/lib/commonjs/plugins/featureFlags/FeatureFlagsPlugin.js.map +1 -0
- package/lib/commonjs/plugins/featureFlags/flagStore.js +125 -0
- package/lib/commonjs/plugins/featureFlags/flagStore.js.map +1 -0
- package/lib/commonjs/plugins/navigationInspector/NavigationInspectorPlugin.js +250 -0
- package/lib/commonjs/plugins/navigationInspector/NavigationInspectorPlugin.js.map +1 -0
- package/lib/commonjs/plugins/navigationInspector/navigationStore.js +65 -0
- package/lib/commonjs/plugins/navigationInspector/navigationStore.js.map +1 -0
- package/lib/commonjs/plugins/network/NetworkInspectorPlugin.js +709 -0
- package/lib/commonjs/plugins/network/NetworkInspectorPlugin.js.map +1 -0
- package/lib/commonjs/plugins/network/NetworkInterceptor.js +305 -0
- package/lib/commonjs/plugins/network/NetworkInterceptor.js.map +1 -0
- package/lib/commonjs/plugins/performance/PerformanceMonitorPlugin.js +261 -0
- package/lib/commonjs/plugins/performance/PerformanceMonitorPlugin.js.map +1 -0
- package/lib/commonjs/plugins/remoteConfig/RemoteConfigPlugin.js +265 -0
- package/lib/commonjs/plugins/remoteConfig/RemoteConfigPlugin.js.map +1 -0
- package/lib/commonjs/plugins/remoteConfig/remoteConfigStore.js +50 -0
- package/lib/commonjs/plugins/remoteConfig/remoteConfigStore.js.map +1 -0
- package/lib/commonjs/plugins/stateInspector/StateInspectorPlugin.js +378 -0
- package/lib/commonjs/plugins/stateInspector/StateInspectorPlugin.js.map +1 -0
- package/lib/commonjs/plugins/stateInspector/stateAdapterRegistry.js +62 -0
- package/lib/commonjs/plugins/stateInspector/stateAdapterRegistry.js.map +1 -0
- package/lib/commonjs/plugins/storageBrowser/StorageBrowserPlugin.js +496 -0
- package/lib/commonjs/plugins/storageBrowser/StorageBrowserPlugin.js.map +1 -0
- package/lib/commonjs/plugins/storageBrowser/storageAdapterRegistry.js +44 -0
- package/lib/commonjs/plugins/storageBrowser/storageAdapterRegistry.js.map +1 -0
- package/lib/commonjs/plugins/timeline/TimelinePlugin.js +294 -0
- package/lib/commonjs/plugins/timeline/TimelinePlugin.js.map +1 -0
- package/lib/commonjs/plugins/timeline/timelineStore.js +61 -0
- package/lib/commonjs/plugins/timeline/timelineStore.js.map +1 -0
- package/lib/module/core/DebugBubble.js +131 -0
- package/lib/module/core/DebugBubble.js.map +1 -0
- package/lib/module/core/DebugOverlay.js +176 -0
- package/lib/module/core/DebugOverlay.js.map +1 -0
- package/lib/module/core/DebuggerProvider.js +167 -0
- package/lib/module/core/DebuggerProvider.js.map +1 -0
- package/lib/module/core/GestureDetector.js +75 -0
- package/lib/module/core/GestureDetector.js.map +1 -0
- package/lib/module/core/PluginRegistry.js +116 -0
- package/lib/module/core/PluginRegistry.js.map +1 -0
- package/lib/module/core/theme.js +43 -0
- package/lib/module/core/theme.js.map +1 -0
- package/lib/module/core/types.js +2 -0
- package/lib/module/core/types.js.map +1 -0
- package/lib/module/core/useDebugger.js +21 -0
- package/lib/module/core/useDebugger.js.map +1 -0
- package/lib/module/core/utils.js +219 -0
- package/lib/module/core/utils.js.map +1 -0
- package/lib/module/index.js +44 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/plugins/console/ConsoleInterceptor.js +97 -0
- package/lib/module/plugins/console/ConsoleInterceptor.js.map +1 -0
- package/lib/module/plugins/console/ConsoleViewerPlugin.js +262 -0
- package/lib/module/plugins/console/ConsoleViewerPlugin.js.map +1 -0
- package/lib/module/plugins/crashReporter/CrashReporterPlugin.js +357 -0
- package/lib/module/plugins/crashReporter/CrashReporterPlugin.js.map +1 -0
- package/lib/module/plugins/customActions/CustomActionsPlugin.js +211 -0
- package/lib/module/plugins/customActions/CustomActionsPlugin.js.map +1 -0
- package/lib/module/plugins/customActions/actionStore.js +38 -0
- package/lib/module/plugins/customActions/actionStore.js.map +1 -0
- package/lib/module/plugins/deepLinkTester/DeepLinkTesterPlugin.js +261 -0
- package/lib/module/plugins/deepLinkTester/DeepLinkTesterPlugin.js.map +1 -0
- package/lib/module/plugins/deviceInfo/DeviceInfoPlugin.js +177 -0
- package/lib/module/plugins/deviceInfo/DeviceInfoPlugin.js.map +1 -0
- package/lib/module/plugins/featureFlags/FeatureFlagsPlugin.js +374 -0
- package/lib/module/plugins/featureFlags/FeatureFlagsPlugin.js.map +1 -0
- package/lib/module/plugins/featureFlags/flagStore.js +117 -0
- package/lib/module/plugins/featureFlags/flagStore.js.map +1 -0
- package/lib/module/plugins/navigationInspector/NavigationInspectorPlugin.js +243 -0
- package/lib/module/plugins/navigationInspector/NavigationInspectorPlugin.js.map +1 -0
- package/lib/module/plugins/navigationInspector/navigationStore.js +58 -0
- package/lib/module/plugins/navigationInspector/navigationStore.js.map +1 -0
- package/lib/module/plugins/network/NetworkInspectorPlugin.js +703 -0
- package/lib/module/plugins/network/NetworkInspectorPlugin.js.map +1 -0
- package/lib/module/plugins/network/NetworkInterceptor.js +299 -0
- package/lib/module/plugins/network/NetworkInterceptor.js.map +1 -0
- package/lib/module/plugins/performance/PerformanceMonitorPlugin.js +254 -0
- package/lib/module/plugins/performance/PerformanceMonitorPlugin.js.map +1 -0
- package/lib/module/plugins/remoteConfig/RemoteConfigPlugin.js +258 -0
- package/lib/module/plugins/remoteConfig/RemoteConfigPlugin.js.map +1 -0
- package/lib/module/plugins/remoteConfig/remoteConfigStore.js +43 -0
- package/lib/module/plugins/remoteConfig/remoteConfigStore.js.map +1 -0
- package/lib/module/plugins/stateInspector/StateInspectorPlugin.js +372 -0
- package/lib/module/plugins/stateInspector/StateInspectorPlugin.js.map +1 -0
- package/lib/module/plugins/stateInspector/stateAdapterRegistry.js +54 -0
- package/lib/module/plugins/stateInspector/stateAdapterRegistry.js.map +1 -0
- package/lib/module/plugins/storageBrowser/StorageBrowserPlugin.js +489 -0
- package/lib/module/plugins/storageBrowser/StorageBrowserPlugin.js.map +1 -0
- package/lib/module/plugins/storageBrowser/storageAdapterRegistry.js +36 -0
- package/lib/module/plugins/storageBrowser/storageAdapterRegistry.js.map +1 -0
- package/lib/module/plugins/timeline/TimelinePlugin.js +287 -0
- package/lib/module/plugins/timeline/TimelinePlugin.js.map +1 -0
- package/lib/module/plugins/timeline/timelineStore.js +54 -0
- package/lib/module/plugins/timeline/timelineStore.js.map +1 -0
- package/lib/typescript/core/DebugBubble.d.ts +22 -0
- package/lib/typescript/core/DebugBubble.d.ts.map +1 -0
- package/lib/typescript/core/DebugOverlay.d.ts +18 -0
- package/lib/typescript/core/DebugOverlay.d.ts.map +1 -0
- package/lib/typescript/core/DebuggerProvider.d.ts +25 -0
- package/lib/typescript/core/DebuggerProvider.d.ts.map +1 -0
- package/lib/typescript/core/GestureDetector.d.ts +20 -0
- package/lib/typescript/core/GestureDetector.d.ts.map +1 -0
- package/lib/typescript/core/PluginRegistry.d.ts +41 -0
- package/lib/typescript/core/PluginRegistry.d.ts.map +1 -0
- package/lib/typescript/core/theme.d.ts +11 -0
- package/lib/typescript/core/theme.d.ts.map +1 -0
- package/lib/typescript/core/types.d.ts +269 -0
- package/lib/typescript/core/types.d.ts.map +1 -0
- package/lib/typescript/core/useDebugger.d.ts +14 -0
- package/lib/typescript/core/useDebugger.d.ts.map +1 -0
- package/lib/typescript/core/utils.d.ts +46 -0
- package/lib/typescript/core/utils.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +23 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/plugins/console/ConsoleInterceptor.d.ts +32 -0
- package/lib/typescript/plugins/console/ConsoleInterceptor.d.ts.map +1 -0
- package/lib/typescript/plugins/console/ConsoleViewerPlugin.d.ts +3 -0
- package/lib/typescript/plugins/console/ConsoleViewerPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/crashReporter/CrashReporterPlugin.d.ts +3 -0
- package/lib/typescript/plugins/crashReporter/CrashReporterPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/customActions/CustomActionsPlugin.d.ts +3 -0
- package/lib/typescript/plugins/customActions/CustomActionsPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/customActions/actionStore.d.ts +16 -0
- package/lib/typescript/plugins/customActions/actionStore.d.ts.map +1 -0
- package/lib/typescript/plugins/deepLinkTester/DeepLinkTesterPlugin.d.ts +3 -0
- package/lib/typescript/plugins/deepLinkTester/DeepLinkTesterPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/deviceInfo/DeviceInfoPlugin.d.ts +3 -0
- package/lib/typescript/plugins/deviceInfo/DeviceInfoPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/featureFlags/FeatureFlagsPlugin.d.ts +3 -0
- package/lib/typescript/plugins/featureFlags/FeatureFlagsPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/featureFlags/flagStore.d.ts +45 -0
- package/lib/typescript/plugins/featureFlags/flagStore.d.ts.map +1 -0
- package/lib/typescript/plugins/navigationInspector/NavigationInspectorPlugin.d.ts +3 -0
- package/lib/typescript/plugins/navigationInspector/NavigationInspectorPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/navigationInspector/navigationStore.d.ts +30 -0
- package/lib/typescript/plugins/navigationInspector/navigationStore.d.ts.map +1 -0
- package/lib/typescript/plugins/network/NetworkInspectorPlugin.d.ts +3 -0
- package/lib/typescript/plugins/network/NetworkInspectorPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/network/NetworkInterceptor.d.ts +42 -0
- package/lib/typescript/plugins/network/NetworkInterceptor.d.ts.map +1 -0
- package/lib/typescript/plugins/performance/PerformanceMonitorPlugin.d.ts +3 -0
- package/lib/typescript/plugins/performance/PerformanceMonitorPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/remoteConfig/RemoteConfigPlugin.d.ts +3 -0
- package/lib/typescript/plugins/remoteConfig/RemoteConfigPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/remoteConfig/remoteConfigStore.d.ts +20 -0
- package/lib/typescript/plugins/remoteConfig/remoteConfigStore.d.ts.map +1 -0
- package/lib/typescript/plugins/stateInspector/StateInspectorPlugin.d.ts +3 -0
- package/lib/typescript/plugins/stateInspector/StateInspectorPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/stateInspector/stateAdapterRegistry.d.ts +34 -0
- package/lib/typescript/plugins/stateInspector/stateAdapterRegistry.d.ts.map +1 -0
- package/lib/typescript/plugins/storageBrowser/StorageBrowserPlugin.d.ts +3 -0
- package/lib/typescript/plugins/storageBrowser/StorageBrowserPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/storageBrowser/storageAdapterRegistry.d.ts +16 -0
- package/lib/typescript/plugins/storageBrowser/storageAdapterRegistry.d.ts.map +1 -0
- package/lib/typescript/plugins/timeline/TimelinePlugin.d.ts +3 -0
- package/lib/typescript/plugins/timeline/TimelinePlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/timeline/timelineStore.d.ts +24 -0
- package/lib/typescript/plugins/timeline/timelineStore.d.ts.map +1 -0
- package/package.json +131 -0
- package/src/core/DebugBubble.tsx +149 -0
- package/src/core/DebugOverlay.tsx +211 -0
- package/src/core/DebuggerProvider.tsx +211 -0
- package/src/core/GestureDetector.tsx +95 -0
- package/src/core/PluginRegistry.ts +118 -0
- package/src/core/theme.ts +41 -0
- package/src/core/types.ts +339 -0
- package/src/core/useDebugger.ts +24 -0
- package/src/core/utils.ts +221 -0
- package/src/index.ts +67 -0
- package/src/plugins/console/ConsoleInterceptor.ts +110 -0
- package/src/plugins/console/ConsoleViewerPlugin.tsx +241 -0
- package/src/plugins/crashReporter/CrashReporterPlugin.tsx +316 -0
- package/src/plugins/customActions/CustomActionsPlugin.tsx +199 -0
- package/src/plugins/customActions/actionStore.ts +49 -0
- package/src/plugins/deepLinkTester/DeepLinkTesterPlugin.tsx +213 -0
- package/src/plugins/deviceInfo/DeviceInfoPlugin.tsx +153 -0
- package/src/plugins/featureFlags/FeatureFlagsPlugin.tsx +338 -0
- package/src/plugins/featureFlags/flagStore.ts +118 -0
- package/src/plugins/navigationInspector/NavigationInspectorPlugin.tsx +170 -0
- package/src/plugins/navigationInspector/navigationStore.ts +70 -0
- package/src/plugins/network/NetworkInspectorPlugin.tsx +598 -0
- package/src/plugins/network/NetworkInterceptor.ts +344 -0
- package/src/plugins/performance/PerformanceMonitorPlugin.tsx +194 -0
- package/src/plugins/remoteConfig/RemoteConfigPlugin.tsx +205 -0
- package/src/plugins/remoteConfig/remoteConfigStore.ts +48 -0
- package/src/plugins/stateInspector/StateInspectorPlugin.tsx +342 -0
- package/src/plugins/stateInspector/stateAdapterRegistry.ts +66 -0
- package/src/plugins/storageBrowser/StorageBrowserPlugin.tsx +410 -0
- package/src/plugins/storageBrowser/storageAdapterRegistry.ts +47 -0
- package/src/plugins/timeline/TimelinePlugin.tsx +242 -0
- package/src/plugins/timeline/timelineStore.ts +65 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Aman Verma
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
<![CDATA[# 🐛 react-native-prod-debugger
|
|
2
|
+
|
|
3
|
+
A comprehensive, **zero-dependency**, in-app debugging toolkit for React Native that works in **production builds**.
|
|
4
|
+
|
|
5
|
+
Activated by a hidden gesture (3-finger long press), it provides a floating debug bubble that opens a rich overlay panel with **13+ built-in tools** — no external desktop app, no dev-only restrictions.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## ✨ Features
|
|
10
|
+
|
|
11
|
+
| # | Tool | Description |
|
|
12
|
+
|---|------|-------------|
|
|
13
|
+
| 🌐 | **Network Inspector** | Full HTTP traffic monitor — request/response headers & bodies, status codes, duration, size, GraphQL detection, cURL export |
|
|
14
|
+
| 📋 | **Console Viewer** | Intercepted `console.log/warn/error/info/debug` with level filters, search, and copy |
|
|
15
|
+
| 🔍 | **State Inspector** | Live state tree viewer for Redux, Zustand, MobX, or any custom store |
|
|
16
|
+
| 🚩 | **Feature Flags** | Toggle boolean flags, edit string/number/JSON values at runtime with group filtering |
|
|
17
|
+
| ⚙️ | **Remote Config** | View Firebase Remote Config or any custom provider with refresh & search |
|
|
18
|
+
| 💾 | **Storage Browser** | Browse, edit, and delete AsyncStorage / MMKV entries with JSON formatting |
|
|
19
|
+
| ⚡ | **Performance Monitor** | Real-time FPS counter, JS thread latency, memory usage, historical chart |
|
|
20
|
+
| 📱 | **Device Info** | Platform, OS version, Hermes status, screen dimensions, scale |
|
|
21
|
+
| 🧭 | **Navigation Inspector** | Current route, params, full state tree, and route history |
|
|
22
|
+
| 💥 | **Crash Reporter** | Captures unhandled JS errors and promise rejections with stack traces |
|
|
23
|
+
| 🎯 | **Custom Actions** | Register developer shortcuts (clear cache, force logout, etc.) |
|
|
24
|
+
| 🔗 | **Deep Link Tester** | Test deep links with presets, URL validation, and history |
|
|
25
|
+
| 📊 | **Timeline** | Visual event logger with category filtering and time deltas |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 📦 Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# npm
|
|
33
|
+
npm install react-native-prod-debugger
|
|
34
|
+
|
|
35
|
+
# yarn
|
|
36
|
+
yarn add react-native-prod-debugger
|
|
37
|
+
|
|
38
|
+
# bun
|
|
39
|
+
bun add react-native-prod-debugger
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Zero native dependencies** — no pod install or native linking required.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 🚀 Quick Start
|
|
47
|
+
|
|
48
|
+
### 1. Wrap Your App
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
import { DebuggerProvider } from 'react-native-prod-debugger';
|
|
52
|
+
|
|
53
|
+
export default function App() {
|
|
54
|
+
return (
|
|
55
|
+
<DebuggerProvider config={{ appVersion: '1.2.3' }}>
|
|
56
|
+
<YourApp />
|
|
57
|
+
</DebuggerProvider>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 2. Activate
|
|
63
|
+
|
|
64
|
+
**3-finger long press** (800ms) anywhere in your app to toggle the debug bubble.
|
|
65
|
+
|
|
66
|
+
Tap the 🐛 bubble to open the full debug overlay.
|
|
67
|
+
|
|
68
|
+
That's it! All 13 tools are ready to use.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 🔧 Configuration
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
<DebuggerProvider
|
|
76
|
+
config={{
|
|
77
|
+
enabled: true, // Toggle debugger on/off
|
|
78
|
+
gesture: 'threeFingerLongPress', // 'threeFingerLongPress' | 'twoFingerTripleTap' | 'shake' | 'custom'
|
|
79
|
+
longPressDuration: 800, // Duration in ms
|
|
80
|
+
numberOfFingers: 3, // Number of fingers required
|
|
81
|
+
interceptConsole: true, // Auto-start console interception
|
|
82
|
+
interceptNetwork: true, // Auto-start network interception
|
|
83
|
+
interceptCrashes: true, // Auto-start crash capturing
|
|
84
|
+
maxNetworkRequests: 500, // Max network entries in memory
|
|
85
|
+
maxConsoleEntries: 1000, // Max console entries in memory
|
|
86
|
+
appVersion: '1.2.3', // Shown in Device Info
|
|
87
|
+
buildNumber: '42', // Shown in Device Info
|
|
88
|
+
bundleId: 'com.myapp', // Shown in Device Info
|
|
89
|
+
disabledPlugins: ['timeline'], // Disable specific plugins by ID
|
|
90
|
+
bubbleSize: 50, // Debug bubble size in dp
|
|
91
|
+
theme: { // Custom theme overrides
|
|
92
|
+
accent: '#FF6B6B',
|
|
93
|
+
background: '#1A1A2E',
|
|
94
|
+
},
|
|
95
|
+
}}
|
|
96
|
+
>
|
|
97
|
+
<App />
|
|
98
|
+
</DebuggerProvider>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 🔌 Plugin Integration
|
|
104
|
+
|
|
105
|
+
### State Inspector (Redux)
|
|
106
|
+
|
|
107
|
+
```tsx
|
|
108
|
+
import { setStateAdapter } from 'react-native-prod-debugger';
|
|
109
|
+
|
|
110
|
+
// After creating your Redux store:
|
|
111
|
+
setStateAdapter('redux', {
|
|
112
|
+
name: 'Redux Store',
|
|
113
|
+
getState: () => store.getState(),
|
|
114
|
+
subscribe: (callback) => store.subscribe(callback),
|
|
115
|
+
});
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### State Inspector (Zustand)
|
|
119
|
+
|
|
120
|
+
```tsx
|
|
121
|
+
import { setStateAdapter } from 'react-native-prod-debugger';
|
|
122
|
+
|
|
123
|
+
setStateAdapter('user-store', {
|
|
124
|
+
name: 'User Store',
|
|
125
|
+
getState: () => useUserStore.getState(),
|
|
126
|
+
subscribe: (callback) => useUserStore.subscribe(callback),
|
|
127
|
+
});
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Feature Flags
|
|
131
|
+
|
|
132
|
+
```tsx
|
|
133
|
+
import { registerFlag, getFlag } from 'react-native-prod-debugger';
|
|
134
|
+
|
|
135
|
+
registerFlag({
|
|
136
|
+
key: 'dark_mode',
|
|
137
|
+
type: 'boolean',
|
|
138
|
+
defaultValue: false,
|
|
139
|
+
label: 'Dark Mode',
|
|
140
|
+
description: 'Enable dark mode across the app',
|
|
141
|
+
group: 'UI',
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
registerFlag({
|
|
145
|
+
key: 'api_timeout',
|
|
146
|
+
type: 'number',
|
|
147
|
+
defaultValue: 30000,
|
|
148
|
+
label: 'API Timeout',
|
|
149
|
+
group: 'Network',
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
// Read flag values
|
|
153
|
+
const isDarkMode = getFlag('dark_mode'); // boolean
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Remote Config (Firebase)
|
|
157
|
+
|
|
158
|
+
```tsx
|
|
159
|
+
import { setRemoteConfigProvider } from 'react-native-prod-debugger';
|
|
160
|
+
import remoteConfig from '@react-native-firebase/remote-config';
|
|
161
|
+
|
|
162
|
+
setRemoteConfigProvider({
|
|
163
|
+
name: 'Firebase',
|
|
164
|
+
getAll: () => {
|
|
165
|
+
const values = remoteConfig().getAll();
|
|
166
|
+
return Object.entries(values).map(([key, entry]) => ({
|
|
167
|
+
key,
|
|
168
|
+
value: entry.asString(),
|
|
169
|
+
source: entry.getSource() === 'remote' ? 'remote' : 'default',
|
|
170
|
+
}));
|
|
171
|
+
},
|
|
172
|
+
getLastFetchTime: () => remoteConfig().lastFetchTime,
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Storage Browser (AsyncStorage)
|
|
177
|
+
|
|
178
|
+
```tsx
|
|
179
|
+
import { setStorageAdapter } from 'react-native-prod-debugger';
|
|
180
|
+
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
181
|
+
|
|
182
|
+
setStorageAdapter('async-storage', {
|
|
183
|
+
name: 'AsyncStorage',
|
|
184
|
+
getAllKeys: () => AsyncStorage.getAllKeys(),
|
|
185
|
+
getItem: (key) => AsyncStorage.getItem(key),
|
|
186
|
+
setItem: (key, value) => AsyncStorage.setItem(key, value),
|
|
187
|
+
removeItem: (key) => AsyncStorage.removeItem(key),
|
|
188
|
+
});
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Navigation Inspector
|
|
192
|
+
|
|
193
|
+
```tsx
|
|
194
|
+
import { setNavigationRef } from 'react-native-prod-debugger';
|
|
195
|
+
import { NavigationContainer } from '@react-navigation/native';
|
|
196
|
+
|
|
197
|
+
const navigationRef = useRef(null);
|
|
198
|
+
|
|
199
|
+
<NavigationContainer ref={navigationRef} onReady={() => setNavigationRef(navigationRef)}>
|
|
200
|
+
{/* ... */}
|
|
201
|
+
</NavigationContainer>
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Custom Actions
|
|
205
|
+
|
|
206
|
+
```tsx
|
|
207
|
+
import { registerAction } from 'react-native-prod-debugger';
|
|
208
|
+
|
|
209
|
+
registerAction({
|
|
210
|
+
id: 'clear-cache',
|
|
211
|
+
name: 'Clear Cache',
|
|
212
|
+
icon: '🗑️',
|
|
213
|
+
group: 'Storage',
|
|
214
|
+
handler: async () => {
|
|
215
|
+
await AsyncStorage.clear();
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
registerAction({
|
|
220
|
+
id: 'force-logout',
|
|
221
|
+
name: 'Force Logout',
|
|
222
|
+
icon: '🚪',
|
|
223
|
+
destructive: true,
|
|
224
|
+
group: 'Auth',
|
|
225
|
+
handler: () => {
|
|
226
|
+
store.dispatch(logout());
|
|
227
|
+
},
|
|
228
|
+
});
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Timeline Events
|
|
232
|
+
|
|
233
|
+
```tsx
|
|
234
|
+
import { logTimelineEvent } from 'react-native-prod-debugger';
|
|
235
|
+
|
|
236
|
+
// Log navigation events
|
|
237
|
+
logTimelineEvent('navigation', 'Navigated to Profile', { userId: 123 });
|
|
238
|
+
|
|
239
|
+
// Log state changes
|
|
240
|
+
logTimelineEvent('state', 'User logged in', { email: 'user@example.com' });
|
|
241
|
+
|
|
242
|
+
// Log custom events
|
|
243
|
+
logTimelineEvent('custom', 'Purchase completed', { amount: 99.99 });
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## 🎨 Programmatic Control
|
|
249
|
+
|
|
250
|
+
```tsx
|
|
251
|
+
import { useDebugger } from 'react-native-prod-debugger';
|
|
252
|
+
|
|
253
|
+
function SettingsScreen() {
|
|
254
|
+
const { show, hide, toggle, isVisible } = useDebugger();
|
|
255
|
+
|
|
256
|
+
return (
|
|
257
|
+
<Button
|
|
258
|
+
title="Open Debug Panel"
|
|
259
|
+
onPress={show}
|
|
260
|
+
/>
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## 🧩 Custom Plugins
|
|
268
|
+
|
|
269
|
+
Create your own plugins and register them:
|
|
270
|
+
|
|
271
|
+
```tsx
|
|
272
|
+
import { registerPlugin } from 'react-native-prod-debugger';
|
|
273
|
+
|
|
274
|
+
registerPlugin({
|
|
275
|
+
id: 'my-custom-plugin',
|
|
276
|
+
name: 'My Tool',
|
|
277
|
+
icon: '🔧',
|
|
278
|
+
order: 200,
|
|
279
|
+
component: ({ theme }) => (
|
|
280
|
+
<View style={{ padding: 16 }}>
|
|
281
|
+
<Text style={{ color: theme.text }}>Hello from my plugin!</Text>
|
|
282
|
+
</View>
|
|
283
|
+
),
|
|
284
|
+
onInit: () => console.log('Plugin initialized!'),
|
|
285
|
+
onDestroy: () => console.log('Plugin destroyed!'),
|
|
286
|
+
});
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## 📋 Plugin IDs
|
|
292
|
+
|
|
293
|
+
Use these IDs with `disabledPlugins` to selectively disable tools:
|
|
294
|
+
|
|
295
|
+
| Plugin | ID |
|
|
296
|
+
|--------|-----|
|
|
297
|
+
| Network Inspector | `network-inspector` |
|
|
298
|
+
| Console Viewer | `console-viewer` |
|
|
299
|
+
| State Inspector | `state-inspector` |
|
|
300
|
+
| Feature Flags | `feature-flags` |
|
|
301
|
+
| Remote Config | `remote-config` |
|
|
302
|
+
| Storage Browser | `storage-browser` |
|
|
303
|
+
| Performance Monitor | `performance-monitor` |
|
|
304
|
+
| Device Info | `device-info` |
|
|
305
|
+
| Navigation Inspector | `navigation-inspector` |
|
|
306
|
+
| Crash Reporter | `crash-reporter` |
|
|
307
|
+
| Custom Actions | `custom-actions` |
|
|
308
|
+
| Deep Link Tester | `deep-link-tester` |
|
|
309
|
+
| Timeline | `timeline` |
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## 🏗️ Architecture
|
|
314
|
+
|
|
315
|
+
```
|
|
316
|
+
react-native-prod-debugger/
|
|
317
|
+
├── src/
|
|
318
|
+
│ ├── core/
|
|
319
|
+
│ │ ├── DebuggerProvider.tsx # Main provider with config & gesture
|
|
320
|
+
│ │ ├── DebugBubble.tsx # Draggable floating button
|
|
321
|
+
│ │ ├── DebugOverlay.tsx # Full-screen overlay with tabs
|
|
322
|
+
│ │ ├── GestureDetector.tsx # Multi-touch gesture detection
|
|
323
|
+
│ │ ├── PluginRegistry.ts # Plugin lifecycle management
|
|
324
|
+
│ │ ├── useDebugger.ts # Hook for programmatic control
|
|
325
|
+
│ │ ├── theme.ts # Dark theme & customization
|
|
326
|
+
│ │ ├── types.ts # All TypeScript interfaces
|
|
327
|
+
│ │ └── utils.ts # Shared utilities
|
|
328
|
+
│ ├── plugins/
|
|
329
|
+
│ │ ├── network/ # XHR + Fetch interceptor
|
|
330
|
+
│ │ ├── console/ # Console method wrapping
|
|
331
|
+
│ │ ├── stateInspector/ # JSON tree viewer
|
|
332
|
+
│ │ ├── featureFlags/ # Flag store + toggle UI
|
|
333
|
+
│ │ ├── remoteConfig/ # Provider-based config viewer
|
|
334
|
+
│ │ ├── storageBrowser/ # Key-value editor
|
|
335
|
+
│ │ ├── performance/ # FPS & memory monitoring
|
|
336
|
+
│ │ ├── deviceInfo/ # Device metadata
|
|
337
|
+
│ │ ├── navigationInspector/ # React Navigation state
|
|
338
|
+
│ │ ├── crashReporter/ # Error boundary + handler
|
|
339
|
+
│ │ ├── customActions/ # Developer shortcuts
|
|
340
|
+
│ │ ├── deepLinkTester/ # URL testing tool
|
|
341
|
+
│ │ └── timeline/ # Event logging
|
|
342
|
+
│ └── index.ts # Public API exports
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
## 📄 License
|
|
348
|
+
|
|
349
|
+
MIT © [Aman Verma](https://github.com/amanverma)
|
|
350
|
+
]]>
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DebugBubble = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
|
+
const SCREEN = _reactNative.Dimensions.get('window');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* DebugBubble — A floating, draggable FAB that opens the debug overlay.
|
|
15
|
+
*
|
|
16
|
+
* - Fully draggable via PanResponder
|
|
17
|
+
* - Snaps to the nearest screen edge on release
|
|
18
|
+
* - Pulses subtly to indicate interactivity
|
|
19
|
+
* - Renders above all other content
|
|
20
|
+
*/
|
|
21
|
+
const DebugBubble = ({
|
|
22
|
+
onPress,
|
|
23
|
+
theme,
|
|
24
|
+
size = 50,
|
|
25
|
+
initialPosition
|
|
26
|
+
}) => {
|
|
27
|
+
const defaultPos = initialPosition ?? {
|
|
28
|
+
x: SCREEN.width - size - 16,
|
|
29
|
+
y: SCREEN.height * 0.7
|
|
30
|
+
};
|
|
31
|
+
const pan = (0, _react.useRef)(new _reactNative.Animated.ValueXY(defaultPos)).current;
|
|
32
|
+
const scale = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
33
|
+
const panResponder = (0, _react.useMemo)(() => _reactNative.PanResponder.create({
|
|
34
|
+
onStartShouldSetPanResponder: () => true,
|
|
35
|
+
onMoveShouldSetPanResponder: (_, gesture) => {
|
|
36
|
+
// Only claim the gesture if the user has dragged more than 5px
|
|
37
|
+
return Math.abs(gesture.dx) > 5 || Math.abs(gesture.dy) > 5;
|
|
38
|
+
},
|
|
39
|
+
onPanResponderGrant: () => {
|
|
40
|
+
// Flatten offset into the value so extractOffset works correctly
|
|
41
|
+
pan.extractOffset();
|
|
42
|
+
_reactNative.Animated.spring(scale, {
|
|
43
|
+
toValue: 1.15,
|
|
44
|
+
useNativeDriver: true,
|
|
45
|
+
friction: 5
|
|
46
|
+
}).start();
|
|
47
|
+
},
|
|
48
|
+
onPanResponderMove: _reactNative.Animated.event([null, {
|
|
49
|
+
dx: pan.x,
|
|
50
|
+
dy: pan.y
|
|
51
|
+
}], {
|
|
52
|
+
useNativeDriver: false
|
|
53
|
+
}),
|
|
54
|
+
onPanResponderRelease: (_, gesture) => {
|
|
55
|
+
pan.flattenOffset();
|
|
56
|
+
_reactNative.Animated.spring(scale, {
|
|
57
|
+
toValue: 1,
|
|
58
|
+
useNativeDriver: true,
|
|
59
|
+
friction: 5
|
|
60
|
+
}).start();
|
|
61
|
+
|
|
62
|
+
// Snap to nearest horizontal edge
|
|
63
|
+
const finalX = gesture.moveX > SCREEN.width / 2 ? SCREEN.width - size - 8 : 8;
|
|
64
|
+
|
|
65
|
+
// Clamp vertical position
|
|
66
|
+
const finalY = Math.max(50, Math.min(gesture.moveY - size / 2, SCREEN.height - size - 50));
|
|
67
|
+
_reactNative.Animated.spring(pan, {
|
|
68
|
+
toValue: {
|
|
69
|
+
x: finalX,
|
|
70
|
+
y: finalY
|
|
71
|
+
},
|
|
72
|
+
useNativeDriver: false,
|
|
73
|
+
friction: 7,
|
|
74
|
+
tension: 40
|
|
75
|
+
}).start();
|
|
76
|
+
|
|
77
|
+
// If the user barely moved, treat it as a tap
|
|
78
|
+
if (Math.abs(gesture.dx) < 10 && Math.abs(gesture.dy) < 10) {
|
|
79
|
+
onPress();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}), [pan, scale, size, onPress]);
|
|
83
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, _extends({
|
|
84
|
+
style: [styles.container, {
|
|
85
|
+
width: size,
|
|
86
|
+
height: size,
|
|
87
|
+
borderRadius: size / 2,
|
|
88
|
+
backgroundColor: theme.bubbleBackground,
|
|
89
|
+
transform: [{
|
|
90
|
+
translateX: pan.x
|
|
91
|
+
}, {
|
|
92
|
+
translateY: pan.y
|
|
93
|
+
}, {
|
|
94
|
+
scale
|
|
95
|
+
}],
|
|
96
|
+
shadowColor: theme.shadow
|
|
97
|
+
}]
|
|
98
|
+
}, panResponder.panHandlers), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
99
|
+
activeOpacity: 0.8,
|
|
100
|
+
style: [styles.inner, {
|
|
101
|
+
width: size,
|
|
102
|
+
height: size,
|
|
103
|
+
borderRadius: size / 2
|
|
104
|
+
}],
|
|
105
|
+
onPress: onPress
|
|
106
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
107
|
+
style: styles.iconContainer
|
|
108
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
109
|
+
style: [styles.icon, {
|
|
110
|
+
fontSize: size * 0.45
|
|
111
|
+
}]
|
|
112
|
+
}, "\uD83D\uDC1B"))));
|
|
113
|
+
};
|
|
114
|
+
exports.DebugBubble = DebugBubble;
|
|
115
|
+
const styles = _reactNative.StyleSheet.create({
|
|
116
|
+
container: {
|
|
117
|
+
position: 'absolute',
|
|
118
|
+
zIndex: 99999,
|
|
119
|
+
elevation: 99999,
|
|
120
|
+
shadowOffset: {
|
|
121
|
+
width: 0,
|
|
122
|
+
height: 4
|
|
123
|
+
},
|
|
124
|
+
shadowOpacity: 0.3,
|
|
125
|
+
shadowRadius: 8
|
|
126
|
+
},
|
|
127
|
+
inner: {
|
|
128
|
+
alignItems: 'center',
|
|
129
|
+
justifyContent: 'center'
|
|
130
|
+
},
|
|
131
|
+
iconContainer: {
|
|
132
|
+
alignItems: 'center',
|
|
133
|
+
justifyContent: 'center'
|
|
134
|
+
},
|
|
135
|
+
icon: {
|
|
136
|
+
textAlign: 'center'
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
//# sourceMappingURL=DebugBubble.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","SCREEN","Dimensions","DebugBubble","onPress","theme","size","initialPosition","defaultPos","x","width","y","height","pan","useRef","Animated","ValueXY","current","scale","Value","panResponder","useMemo","PanResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","_","gesture","Math","abs","dx","dy","onPanResponderGrant","extractOffset","spring","toValue","useNativeDriver","friction","start","onPanResponderMove","event","onPanResponderRelease","flattenOffset","finalX","moveX","finalY","max","min","moveY","tension","createElement","View","style","styles","container","borderRadius","backgroundColor","bubbleBackground","transform","translateX","translateY","shadowColor","shadow","panHandlers","TouchableOpacity","activeOpacity","inner","iconContainer","Text","icon","fontSize","exports","StyleSheet","position","zIndex","elevation","shadowOffset","shadowOpacity","shadowRadius","alignItems","justifyContent","textAlign"],"sourceRoot":"../../../src","sources":["core/DebugBubble.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQsB,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,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