react-native-debug-toolkit 0.6.1 → 0.6.3
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/lib/NativeDebugLibs.js
CHANGED
|
@@ -48,20 +48,20 @@ export default class NativeDebugLibs {
|
|
|
48
48
|
|
|
49
49
|
// DoraemonKit/DoKit methods
|
|
50
50
|
static installDoraemonKit(productId) {
|
|
51
|
-
if (RNDebugLibs) {
|
|
52
|
-
|
|
53
|
-
}
|
|
51
|
+
// if (RNDebugLibs) {
|
|
52
|
+
// RNDebugLibs.installDoraemonKit(productId)
|
|
53
|
+
// }
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
static showDoraemonKit() {
|
|
57
|
-
if (RNDebugLibs) {
|
|
58
|
-
|
|
59
|
-
}
|
|
57
|
+
// if (RNDebugLibs) {
|
|
58
|
+
// RNDebugLibs.showDoraemonKit()
|
|
59
|
+
// }
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
static hideDoraemonKit() {
|
|
63
|
-
if (RNDebugLibs) {
|
|
64
|
-
|
|
65
|
-
}
|
|
63
|
+
// if (RNDebugLibs) {
|
|
64
|
+
// RNDebugLibs.hideDoraemonKit()
|
|
65
|
+
// }
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -8,7 +8,7 @@ const setup = () => {
|
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
// Function to add navigation log
|
|
11
|
-
export const addNavigationLog = (action, from, to, startTime, duration) => {
|
|
11
|
+
export const addNavigationLog = (action, from, to, startTime, duration, debugLog) => {
|
|
12
12
|
// Store log data
|
|
13
13
|
logs.push({
|
|
14
14
|
timestamp: new Date(),
|
|
@@ -17,6 +17,7 @@ export const addNavigationLog = (action, from, to, startTime, duration) => {
|
|
|
17
17
|
to: to, // destination route info
|
|
18
18
|
startTime: startTime,
|
|
19
19
|
duration: duration,
|
|
20
|
+
debugLog: debugLog,
|
|
20
21
|
});
|
|
21
22
|
|
|
22
23
|
// Trim logs if they exceed the maximum limit
|
|
@@ -108,7 +108,7 @@ const NavigationLogDetails = ({ log }) => {
|
|
|
108
108
|
)
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
const { action, from, to, timestamp, startTime, duration } = log
|
|
111
|
+
const { action, from, to, timestamp, startTime, duration, debugLog } = log
|
|
112
112
|
const actionColor = getNavigationActionColor(action)
|
|
113
113
|
|
|
114
114
|
// Format the log data for text display and copying
|
|
@@ -167,6 +167,14 @@ Duration: ${duration || 'N/A'} ms`;
|
|
|
167
167
|
</View>
|
|
168
168
|
</CollapsibleSection>
|
|
169
169
|
|
|
170
|
+
<CollapsibleSection title='Debug Log' initiallyExpanded={true}>
|
|
171
|
+
<View style={styles.dataContentWrapper}>
|
|
172
|
+
<View style={styles.dataContent}>
|
|
173
|
+
<JSONValue value={debugLog} />
|
|
174
|
+
</View>
|
|
175
|
+
</View>
|
|
176
|
+
</CollapsibleSection>
|
|
177
|
+
|
|
170
178
|
</ScrollView>
|
|
171
179
|
)
|
|
172
180
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
|
|
|
18
18
|
s.dependency "FLEX", "~> 5.0"
|
|
19
19
|
|
|
20
20
|
# DoraemonKit is only needed for debug builds
|
|
21
|
-
s.dependency "DoraemonKit/Core", "~> 3.0"
|
|
21
|
+
# s.dependency "DoraemonKit/Core", "~> 3.0"
|
|
22
22
|
|
|
23
23
|
# This ensures FLEX and DoraemonKit are only included in debug builds
|
|
24
24
|
s.pod_target_xcconfig = { 'OTHER_CFLAGS' => '-DDebug=$(CONFIGURATION)' }
|