react-native-inapp-inspector 2.3.19 → 2.3.21

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 (353) hide show
  1. package/README.md +14 -14
  2. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +67 -0
  3. package/dist/commonjs/analytics.js +1 -24
  4. package/dist/commonjs/bundle.js +1 -16
  5. package/dist/commonjs/capture.js +1 -35
  6. package/dist/commonjs/components/AnalyticsDetail.js +92 -623
  7. package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
  8. package/dist/commonjs/components/AnalyticsGraph.js +70 -370
  9. package/dist/commonjs/components/AnimatedEntrance.js +1 -11
  10. package/dist/commonjs/components/AppHeaderLogo.js +7 -134
  11. package/dist/commonjs/components/BrandCircleIcon.js +73 -118
  12. package/dist/commonjs/components/BrandSquareIcon.js +63 -108
  13. package/dist/commonjs/components/CodeSnippet.js +48 -623
  14. package/dist/commonjs/components/ConsoleLogCard.js +63 -537
  15. package/dist/commonjs/components/CopyButton.js +3 -89
  16. package/dist/commonjs/components/DiffViewer.js +19 -83
  17. package/dist/commonjs/components/DomainHeader.js +27 -127
  18. package/dist/commonjs/components/EmptyState.js +10 -87
  19. package/dist/commonjs/components/EndOfListFooter.js +7 -81
  20. package/dist/commonjs/components/ErrorBoundary.js +72 -566
  21. package/dist/commonjs/components/HeadersSection.js +31 -110
  22. package/dist/commonjs/components/HighlightText.js +17 -58
  23. package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
  24. package/dist/commonjs/components/Inspector/AboutModal.js +243 -0
  25. package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
  26. package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
  27. package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
  28. package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
  29. package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
  30. package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
  31. package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
  32. package/dist/commonjs/components/Inspector/DebuggingTab.js +74 -875
  33. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
  34. package/dist/commonjs/components/Inspector/FabLauncher.js +42 -466
  35. package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
  36. package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
  37. package/dist/commonjs/components/Inspector/InspectorHeader.js +191 -1110
  38. package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
  39. package/dist/commonjs/components/Inspector/MainScreen.js +52 -335
  40. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +97 -644
  41. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +90 -605
  42. package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
  43. package/dist/commonjs/components/Inspector/NetworkDetail.js +89 -411
  44. package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
  45. package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
  46. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +18 -434
  47. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
  48. package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
  49. package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
  50. package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
  51. package/dist/commonjs/components/Inspector/SettingsPanel.js +427 -3807
  52. package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
  53. package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
  54. package/dist/commonjs/components/Inspector/TabBar.js +36 -334
  55. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +37 -412
  56. package/dist/commonjs/components/JsonViewer.js +168 -381
  57. package/dist/commonjs/components/LogCard.js +57 -567
  58. package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
  59. package/dist/commonjs/components/MetaAccordion.js +69 -238
  60. package/dist/commonjs/components/MiniBarChart.js +3 -56
  61. package/dist/commonjs/components/MiniLineChart.js +3 -58
  62. package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
  63. package/dist/commonjs/components/NetworkIcons.js +521 -1022
  64. package/dist/commonjs/components/QRCodeView.js +5 -79
  65. package/dist/commonjs/components/SectionHeader.js +15 -37
  66. package/dist/commonjs/components/SegmentedTabs.js +7 -62
  67. package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
  68. package/dist/commonjs/components/Slider.js +15 -243
  69. package/dist/commonjs/components/SourcePageCard.js +30 -89
  70. package/dist/commonjs/components/Toast.js +5 -147
  71. package/dist/commonjs/components/TouchableScale.js +3 -24
  72. package/dist/commonjs/components/TreeNode.js +55 -130
  73. package/dist/commonjs/console.js +1 -16
  74. package/dist/commonjs/constants/index.js +1 -32
  75. package/dist/commonjs/constants/telemetryConfig.js +1 -6
  76. package/dist/commonjs/constants/version.d.ts +1 -1
  77. package/dist/commonjs/constants/version.js +1 -4
  78. package/dist/commonjs/crash.js +1 -23
  79. package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
  80. package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
  81. package/dist/commonjs/customHooks/consoleLogger.js +6 -445
  82. package/dist/commonjs/customHooks/crashHandler.js +7 -656
  83. package/dist/commonjs/customHooks/logFilters.js +1 -23
  84. package/dist/commonjs/customHooks/networkLogger.js +2 -536
  85. package/dist/commonjs/customHooks/performanceTracker.js +63 -750
  86. package/dist/commonjs/customHooks/reduxLogger.js +2 -313
  87. package/dist/commonjs/customHooks/storageInspector.js +1 -435
  88. package/dist/commonjs/customHooks/useAccordion.js +1 -18
  89. package/dist/commonjs/decorators/index.js +1 -100
  90. package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
  91. package/dist/commonjs/helpers/index.d.ts +1 -0
  92. package/dist/commonjs/helpers/index.js +8 -921
  93. package/dist/commonjs/helpers/memoryManager.js +1 -99
  94. package/dist/commonjs/helpers/qrGenerator.js +1 -367
  95. package/dist/commonjs/helpers/remoteConfig.js +1 -165
  96. package/dist/commonjs/helpers/searchQueryParser.js +1 -62
  97. package/dist/commonjs/helpers/settingsStore.js +1 -144
  98. package/dist/commonjs/helpers/telemetry.js +1 -501
  99. package/dist/commonjs/helpers/toast.js +1 -20
  100. package/dist/commonjs/i18n/index.js +1 -90
  101. package/dist/commonjs/i18n/locales/en.json +1 -1140
  102. package/dist/commonjs/index.js +5 -2168
  103. package/dist/commonjs/metro.js +6 -468
  104. package/dist/commonjs/native/NativeInspector.d.ts +1 -0
  105. package/dist/commonjs/native/NativeInspector.js +1 -415
  106. package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
  107. package/dist/commonjs/network.js +1 -13
  108. package/dist/commonjs/performance.js +1 -29
  109. package/dist/commonjs/redux.js +1 -20
  110. package/dist/commonjs/storage.js +1 -14
  111. package/dist/commonjs/styles/AppColors.js +1 -423
  112. package/dist/commonjs/styles/AppFonts.js +1 -17
  113. package/dist/commonjs/styles/common.js +1 -190
  114. package/dist/commonjs/styles/index.d.ts +6 -0
  115. package/dist/commonjs/styles/index.js +1 -1589
  116. package/dist/commonjs/types/enums.d.ts +0 -1
  117. package/dist/commonjs/types/enums.js +1 -152
  118. package/dist/commonjs/types/index.js +1 -18
  119. package/dist/commonjs/types/interfaces.d.ts +2 -2
  120. package/dist/commonjs/types/interfaces.js +1 -2
  121. package/dist/esm/analytics.js +1 -2
  122. package/dist/esm/bundle.js +1 -2
  123. package/dist/esm/capture.js +1 -32
  124. package/dist/esm/components/AnalyticsDetail.js +171 -664
  125. package/dist/esm/components/AnalyticsEventCard.js +77 -335
  126. package/dist/esm/components/AnalyticsGraph.js +95 -357
  127. package/dist/esm/components/AnimatedEntrance.js +1 -6
  128. package/dist/esm/components/AppHeaderLogo.js +7 -94
  129. package/dist/esm/components/BrandCircleIcon.js +114 -119
  130. package/dist/esm/components/BrandSquareIcon.js +73 -78
  131. package/dist/esm/components/CodeSnippet.js +58 -595
  132. package/dist/esm/components/ConsoleLogCard.js +91 -526
  133. package/dist/esm/components/CopyButton.js +3 -51
  134. package/dist/esm/components/DiffViewer.js +22 -48
  135. package/dist/esm/components/DomainHeader.js +43 -138
  136. package/dist/esm/components/EmptyState.js +17 -56
  137. package/dist/esm/components/EndOfListFooter.js +15 -83
  138. package/dist/esm/components/ErrorBoundary.js +125 -582
  139. package/dist/esm/components/HeadersSection.js +52 -93
  140. package/dist/esm/components/HighlightText.js +17 -53
  141. package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
  142. package/dist/esm/components/Inspector/AboutModal.js +243 -0
  143. package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
  144. package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
  145. package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
  146. package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
  147. package/dist/esm/components/Inspector/CrashDetail.js +236 -747
  148. package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
  149. package/dist/esm/components/Inspector/CrashTab.js +177 -711
  150. package/dist/esm/components/Inspector/DebuggingTab.js +164 -925
  151. package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
  152. package/dist/esm/components/Inspector/FabLauncher.js +68 -454
  153. package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
  154. package/dist/esm/components/Inspector/InspectorContext.js +1 -12
  155. package/dist/esm/components/Inspector/InspectorHeader.js +282 -1163
  156. package/dist/esm/components/Inspector/LogDetail.js +235 -1023
  157. package/dist/esm/components/Inspector/MainScreen.js +78 -323
  158. package/dist/esm/components/Inspector/MediaGalleryTab.js +143 -650
  159. package/dist/esm/components/Inspector/MediaPreviewModal.js +138 -613
  160. package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
  161. package/dist/esm/components/Inspector/NetworkDetail.js +138 -455
  162. package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
  163. package/dist/esm/components/Inspector/NetworkTab.js +125 -517
  164. package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
  165. package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
  166. package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
  167. package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
  168. package/dist/esm/components/Inspector/ReduxTab.js +144 -722
  169. package/dist/esm/components/Inspector/SettingsPanel.js +643 -3985
  170. package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
  171. package/dist/esm/components/Inspector/StorageTab.js +172 -866
  172. package/dist/esm/components/Inspector/TabBar.js +45 -305
  173. package/dist/esm/components/Inspector/UpdateAvailableModal.js +80 -418
  174. package/dist/esm/components/JsonViewer.js +179 -354
  175. package/dist/esm/components/LogCard.js +93 -565
  176. package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
  177. package/dist/esm/components/MetaAccordion.js +136 -267
  178. package/dist/esm/components/MiniBarChart.js +3 -18
  179. package/dist/esm/components/MiniLineChart.js +3 -20
  180. package/dist/esm/components/NetworkIcons.d.ts +13 -0
  181. package/dist/esm/components/NetworkIcons.js +523 -838
  182. package/dist/esm/components/QRCodeView.js +8 -45
  183. package/dist/esm/components/SectionHeader.js +22 -39
  184. package/dist/esm/components/SegmentedTabs.js +8 -58
  185. package/dist/esm/components/SkeletonPlaceholder.js +30 -163
  186. package/dist/esm/components/Slider.js +24 -213
  187. package/dist/esm/components/SourcePageCard.js +65 -86
  188. package/dist/esm/components/Toast.js +10 -117
  189. package/dist/esm/components/TouchableScale.js +3 -19
  190. package/dist/esm/components/TreeNode.js +58 -95
  191. package/dist/esm/console.js +1 -2
  192. package/dist/esm/constants/index.js +1 -28
  193. package/dist/esm/constants/telemetryConfig.js +1 -3
  194. package/dist/esm/constants/version.d.ts +1 -1
  195. package/dist/esm/constants/version.js +1 -1
  196. package/dist/esm/crash.js +1 -2
  197. package/dist/esm/customHooks/analyticsLogger.js +1 -230
  198. package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
  199. package/dist/esm/customHooks/consoleLogger.js +6 -432
  200. package/dist/esm/customHooks/crashHandler.js +7 -630
  201. package/dist/esm/customHooks/logFilters.js +1 -20
  202. package/dist/esm/customHooks/networkLogger.js +2 -519
  203. package/dist/esm/customHooks/performanceTracker.js +63 -723
  204. package/dist/esm/customHooks/reduxLogger.js +2 -293
  205. package/dist/esm/customHooks/storageInspector.js +1 -418
  206. package/dist/esm/customHooks/useAccordion.js +1 -16
  207. package/dist/esm/decorators/index.js +1 -95
  208. package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
  209. package/dist/esm/helpers/index.d.ts +1 -0
  210. package/dist/esm/helpers/index.js +8 -861
  211. package/dist/esm/helpers/memoryManager.js +1 -91
  212. package/dist/esm/helpers/qrGenerator.js +1 -364
  213. package/dist/esm/helpers/remoteConfig.js +1 -160
  214. package/dist/esm/helpers/searchQueryParser.js +1 -59
  215. package/dist/esm/helpers/settingsStore.js +1 -134
  216. package/dist/esm/helpers/telemetry.js +1 -489
  217. package/dist/esm/helpers/toast.js +1 -15
  218. package/dist/esm/i18n/index.js +1 -78
  219. package/dist/esm/i18n/locales/en.json +1 -1140
  220. package/dist/esm/index.js +7 -1982
  221. package/dist/esm/metro.js +6 -459
  222. package/dist/esm/native/NativeInspector.d.ts +1 -0
  223. package/dist/esm/native/NativeInspector.js +1 -382
  224. package/dist/esm/native/NativeNetworkInspector.js +1 -2
  225. package/dist/esm/network.js +1 -1
  226. package/dist/esm/performance.js +1 -2
  227. package/dist/esm/redux.js +1 -1
  228. package/dist/esm/storage.js +1 -1
  229. package/dist/esm/styles/AppColors.js +1 -417
  230. package/dist/esm/styles/AppFonts.js +1 -13
  231. package/dist/esm/styles/common.js +1 -186
  232. package/dist/esm/styles/index.d.ts +6 -0
  233. package/dist/esm/styles/index.js +1 -1551
  234. package/dist/esm/types/enums.d.ts +0 -1
  235. package/dist/esm/types/enums.js +1 -149
  236. package/dist/esm/types/index.js +1 -2
  237. package/dist/esm/types/interfaces.d.ts +2 -2
  238. package/dist/esm/types/interfaces.js +1 -1
  239. package/ios/NetworkInspectorModule.mm +60 -12
  240. package/package.json +5 -3
  241. package/src/native/NativeInspector.ts +18 -0
  242. package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +0 -7
  243. package/dist/commonjs/components/Inspector/FeedbackModal.js +0 -552
  244. package/dist/esm/components/Inspector/FeedbackModal.d.ts +0 -7
  245. package/dist/esm/components/Inspector/FeedbackModal.js +0 -515
  246. package/src/analytics.ts +0 -35
  247. package/src/bundle.ts +0 -25
  248. package/src/capture.ts +0 -109
  249. package/src/components/AnalyticsDetail.tsx +0 -870
  250. package/src/components/AnalyticsEventCard.tsx +0 -444
  251. package/src/components/AnalyticsGraph.tsx +0 -583
  252. package/src/components/AnimatedEntrance.tsx +0 -20
  253. package/src/components/AppHeaderLogo.tsx +0 -143
  254. package/src/components/BrandCircleIcon.tsx +0 -144
  255. package/src/components/BrandSquareIcon.tsx +0 -184
  256. package/src/components/CodeSnippet.tsx +0 -725
  257. package/src/components/ConsoleLogCard.tsx +0 -679
  258. package/src/components/CopyButton.tsx +0 -87
  259. package/src/components/DiffViewer.tsx +0 -82
  260. package/src/components/DomainHeader.tsx +0 -224
  261. package/src/components/EmptyState.tsx +0 -97
  262. package/src/components/EndOfListFooter.tsx +0 -100
  263. package/src/components/ErrorBoundary.tsx +0 -688
  264. package/src/components/HeadersSection.tsx +0 -172
  265. package/src/components/HighlightText.tsx +0 -100
  266. package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
  267. package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
  268. package/src/components/Inspector/BundleTab.tsx +0 -4768
  269. package/src/components/Inspector/ConsoleTab.tsx +0 -726
  270. package/src/components/Inspector/CrashDetail.tsx +0 -997
  271. package/src/components/Inspector/CrashFilterModal.tsx +0 -721
  272. package/src/components/Inspector/CrashTab.tsx +0 -933
  273. package/src/components/Inspector/DebuggingTab.tsx +0 -1103
  274. package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
  275. package/src/components/Inspector/FabLauncher.tsx +0 -590
  276. package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
  277. package/src/components/Inspector/FeedbackModal.tsx +0 -626
  278. package/src/components/Inspector/InspectorContext.tsx +0 -28
  279. package/src/components/Inspector/InspectorHeader.tsx +0 -1583
  280. package/src/components/Inspector/LogDetail.tsx +0 -1431
  281. package/src/components/Inspector/MainScreen.tsx +0 -460
  282. package/src/components/Inspector/MediaGalleryTab.tsx +0 -829
  283. package/src/components/Inspector/MediaPreviewModal.tsx +0 -783
  284. package/src/components/Inspector/NavigationTracker.tsx +0 -13
  285. package/src/components/Inspector/NetworkDetail.tsx +0 -778
  286. package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
  287. package/src/components/Inspector/NetworkTab.tsx +0 -820
  288. package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
  289. package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
  290. package/src/components/Inspector/PerformanceTab.tsx +0 -1967
  291. package/src/components/Inspector/ReduxDetail.tsx +0 -1651
  292. package/src/components/Inspector/ReduxTab.tsx +0 -987
  293. package/src/components/Inspector/SettingsPanel.tsx +0 -5136
  294. package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
  295. package/src/components/Inspector/StorageTab.tsx +0 -1159
  296. package/src/components/Inspector/TabBar.tsx +0 -431
  297. package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
  298. package/src/components/JsonViewer.tsx +0 -549
  299. package/src/components/LogCard.tsx +0 -694
  300. package/src/components/LogSyntaxHighlighter.tsx +0 -178
  301. package/src/components/MetaAccordion.tsx +0 -355
  302. package/src/components/MiniBarChart.tsx +0 -42
  303. package/src/components/MiniLineChart.tsx +0 -33
  304. package/src/components/NetworkIcons.tsx +0 -2655
  305. package/src/components/QRCodeView.tsx +0 -75
  306. package/src/components/SectionHeader.tsx +0 -101
  307. package/src/components/SegmentedTabs.tsx +0 -84
  308. package/src/components/SkeletonPlaceholder.tsx +0 -206
  309. package/src/components/Slider.tsx +0 -300
  310. package/src/components/SourcePageCard.tsx +0 -150
  311. package/src/components/Toast.tsx +0 -131
  312. package/src/components/TouchableScale.tsx +0 -61
  313. package/src/components/TreeNode.tsx +0 -171
  314. package/src/console.ts +0 -24
  315. package/src/constants/index.ts +0 -41
  316. package/src/constants/telemetryConfig.ts +0 -4
  317. package/src/constants/version.ts +0 -3
  318. package/src/crash.ts +0 -32
  319. package/src/customHooks/analyticsLogger.ts +0 -336
  320. package/src/customHooks/bundleAnalyzer.ts +0 -1256
  321. package/src/customHooks/consoleLogger.ts +0 -530
  322. package/src/customHooks/crashHandler.ts +0 -944
  323. package/src/customHooks/logFilters.ts +0 -32
  324. package/src/customHooks/networkLogger.ts +0 -624
  325. package/src/customHooks/performanceTracker.ts +0 -1014
  326. package/src/customHooks/reduxLogger.ts +0 -406
  327. package/src/customHooks/storageInspector.ts +0 -513
  328. package/src/customHooks/useAccordion.tsx +0 -27
  329. package/src/decorators/index.ts +0 -184
  330. package/src/helpers/gaAnalyticsRegistry.ts +0 -204
  331. package/src/helpers/index.ts +0 -1092
  332. package/src/helpers/memoryManager.ts +0 -138
  333. package/src/helpers/qrGenerator.ts +0 -430
  334. package/src/helpers/remoteConfig.ts +0 -212
  335. package/src/helpers/searchQueryParser.ts +0 -84
  336. package/src/helpers/settingsStore.ts +0 -171
  337. package/src/helpers/telemetry.ts +0 -568
  338. package/src/helpers/toast.ts +0 -17
  339. package/src/i18n/index.ts +0 -104
  340. package/src/i18n/locales/en.json +0 -1141
  341. package/src/index.tsx +0 -2650
  342. package/src/metro.ts +0 -598
  343. package/src/network.ts +0 -22
  344. package/src/performance.ts +0 -38
  345. package/src/redux.ts +0 -23
  346. package/src/storage.ts +0 -18
  347. package/src/styles/AppColors.ts +0 -455
  348. package/src/styles/AppFonts.ts +0 -26
  349. package/src/styles/common.ts +0 -209
  350. package/src/styles/index.ts +0 -1606
  351. package/src/types/enums.ts +0 -210
  352. package/src/types/index.ts +0 -34
  353. package/src/types/interfaces.ts +0 -535
@@ -1,1103 +0,0 @@
1
- import React, {useState, useEffect, useMemo, useCallback, useRef} from 'react';
2
- import {
3
- View,
4
- Text,
5
- ScrollView,
6
- StyleSheet,
7
- NativeModules,
8
- Share,
9
- TouchableOpacity,
10
- ActivityIndicator,
11
- Animated,
12
- Platform,
13
- } from 'react-native';
14
- import {useInspector} from './InspectorContext';
15
- import {AppColors} from '../../styles/AppColors';
16
- import {AppFonts} from '../../styles/AppFonts';
17
- import QRCodeView from '../QRCodeView';
18
- import TouchableScale from '../TouchableScale';
19
- import CopyButton from '../CopyButton';
20
- import {copyToClipboard} from '../../helpers';
21
- import {showToast} from '../../helpers/toast';
22
- import {triggerNativeHaptic} from '../../native/NativeInspector';
23
- import {
24
- PackageIcon,
25
- InfoCircleIcon,
26
- CheckIcon,
27
- BoltIcon,
28
- CircleXIcon,
29
- CopyIcon,
30
- ExternalLinkIcon,
31
- SparkleIcon,
32
- AndroidIcon,
33
- RepeatIcon,
34
- } from '../NetworkIcons';
35
- import Svg, {Path} from 'react-native-svg';
36
-
37
- const TerminalConsoleIcon = ({color = AppColors.purple, size = 13}: {color?: string; size?: number}) => (
38
- <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
39
- <Path d="M4 17l6-6-6-6M12 19h8" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
40
- </Svg>
41
- );
42
-
43
- interface BuildStatusData {
44
- status: 'idle' | 'running' | 'completed' | 'failed';
45
- scheme: string;
46
- clean: boolean;
47
- progress: number;
48
- currentTask: string;
49
- logs?: string[];
50
- error: string | null;
51
- apkName: string | null;
52
- apkSize: number | null;
53
- }
54
-
55
- export const DebuggingTab: React.FC = () => {
56
- // Auto-detect host IP and initial port from NativeModules.SourceCode.scriptURL
57
- const detectedConfig = useMemo(() => {
58
- const scriptURL = NativeModules.SourceCode?.scriptURL || '';
59
- let host = 'localhost';
60
- let port = 8081;
61
-
62
- try {
63
- if (scriptURL.includes('://')) {
64
- const urlWithoutScheme = scriptURL.split('://')[1];
65
- const hostAndPort = urlWithoutScheme.split('/')[0];
66
- if (hostAndPort.includes(':')) {
67
- const parts = hostAndPort.split(':');
68
- host = parts[0];
69
- const parsedPort = parseInt(parts[1], 10);
70
- if (!isNaN(parsedPort)) port = parsedPort;
71
- } else {
72
- host = hostAndPort;
73
- }
74
- }
75
- } catch {}
76
-
77
- return {host, port, scriptURL};
78
- }, []);
79
-
80
- const [hostIp, setHostIp] = useState<string>(() => {
81
- if (
82
- detectedConfig.host &&
83
- detectedConfig.host !== 'localhost' &&
84
- detectedConfig.host !== '127.0.0.1' &&
85
- detectedConfig.host !== '10.0.2.2'
86
- ) {
87
- return detectedConfig.host;
88
- }
89
- return '192.168.1.2';
90
- });
91
-
92
- const [port, setPort] = useState<number>(detectedConfig.port || 8083);
93
- const [apkFileName, setApkFileName] = useState<string>('app-debug.apk');
94
- const [apkSizeMb, setApkSizeMb] = useState<string | null>(null);
95
-
96
- // Build generation state
97
- const [selectedScheme, setSelectedScheme] = useState<'assembleRelease' | 'assembleDebug'>('assembleRelease');
98
- const [isCleanBuild, setIsCleanBuild] = useState<boolean>(true);
99
- const [buildStatus, setBuildStatus] = useState<BuildStatusData>({
100
- status: 'idle',
101
- scheme: 'assembleRelease',
102
- clean: true,
103
- progress: 0,
104
- currentTask: '',
105
- error: null,
106
- apkName: null,
107
- apkSize: null,
108
- });
109
-
110
- const pollingRef = useRef<NodeJS.Timeout | null>(null);
111
- const progressAnim = useRef(new Animated.Value(0)).current;
112
- const [showVerboseLogs, setShowVerboseLogs] = useState<boolean>(true);
113
- const verboseScrollRef = useRef<ScrollView | null>(null);
114
-
115
- // Animate progress bar smoothly
116
- useEffect(() => {
117
- Animated.timing(progressAnim, {
118
- toValue: Math.max(0, Math.min(100, buildStatus.progress)),
119
- duration: 350,
120
- useNativeDriver: false,
121
- }).start();
122
- }, [buildStatus.progress, progressAnim]);
123
-
124
- // Auto-scroll verbose console to bottom
125
- useEffect(() => {
126
- if (buildStatus.logs && buildStatus.logs.length > 0) {
127
- setTimeout(() => {
128
- verboseScrollRef.current?.scrollToEnd({ animated: true });
129
- }, 50);
130
- }
131
- }, [buildStatus.logs]);
132
-
133
- // Auto-fetch dynamic IP and APK metadata from Metro / Standalone Server
134
- const fetchMetroTelemetry = useCallback(async () => {
135
- const hostsToTry = Array.from(
136
- new Set([detectedConfig.host, '10.0.2.2', 'localhost', '127.0.0.1'].filter(Boolean)),
137
- );
138
- const portsToTry = Array.from(
139
- new Set([detectedConfig.port, 8083, 8081, 8082].filter(Boolean)),
140
- );
141
-
142
- for (const h of hostsToTry) {
143
- for (const p of portsToTry) {
144
- try {
145
- const controller = new AbortController();
146
- const timeoutId = setTimeout(() => controller.abort(), 1200);
147
- const res = await fetch(`http://${h}:${p}/__inapp_inspector/apk-info`, {
148
- signal: controller.signal,
149
- });
150
- clearTimeout(timeoutId);
151
- if (res.ok) {
152
- const data = await res.json();
153
- if (
154
- data.hostIp &&
155
- data.hostIp !== '127.0.0.1' &&
156
- data.hostIp !== 'localhost' &&
157
- data.hostIp !== '10.0.2.2'
158
- ) {
159
- setHostIp(data.hostIp);
160
- }
161
- if (data.port) {
162
- setPort(data.port);
163
- }
164
- if (data.apkName) {
165
- setApkFileName(data.apkName);
166
- }
167
- if (data.apkSize) {
168
- setApkSizeMb((data.apkSize / (1024 * 1024)).toFixed(1));
169
- }
170
- return;
171
- }
172
- } catch {}
173
- }
174
- }
175
- }, [detectedConfig.host, detectedConfig.port]);
176
-
177
- useEffect(() => {
178
- fetchMetroTelemetry();
179
- }, [fetchMetroTelemetry]);
180
-
181
- // Clean up polling interval on unmount
182
- useEffect(() => {
183
- return () => {
184
- if (pollingRef.current) {
185
- clearInterval(pollingRef.current);
186
- }
187
- };
188
- }, []);
189
-
190
- // Poll build status from Metro
191
- const pollBuildStatus = useCallback(() => {
192
- if (pollingRef.current) clearInterval(pollingRef.current);
193
-
194
- const targetHost = detectedConfig.host || '10.0.2.2';
195
- pollingRef.current = setInterval(async () => {
196
- try {
197
- const res = await fetch(`http://${targetHost}:${port}/__inapp_inspector/build-status`);
198
- if (res.ok) {
199
- const data: BuildStatusData = await res.json();
200
- setBuildStatus(data);
201
-
202
- if (data.status === 'completed') {
203
- if (pollingRef.current) clearInterval(pollingRef.current);
204
- triggerNativeHaptic('success');
205
- showToast('✓ APK Build Generated Successfully!');
206
- if (data.apkSize) {
207
- setApkSizeMb((data.apkSize / (1024 * 1024)).toFixed(1));
208
- }
209
- if (data.apkName) {
210
- setApkFileName(data.apkName);
211
- }
212
- fetchMetroTelemetry();
213
- } else if (data.status === 'failed') {
214
- if (pollingRef.current) clearInterval(pollingRef.current);
215
- triggerNativeHaptic('error');
216
- showToast('✕ Build Failed: ' + (data.error || 'Gradle error'));
217
- }
218
- }
219
- } catch {}
220
- }, 1000);
221
- }, [detectedConfig.host, port, fetchMetroTelemetry]);
222
-
223
- // Start Gradle build on computer via Metro / Standalone Server
224
- const handleStartBuild = async () => {
225
- triggerNativeHaptic('medium');
226
- setBuildStatus({
227
- status: 'running',
228
- scheme: selectedScheme,
229
- clean: isCleanBuild,
230
- progress: 5,
231
- currentTask: isCleanBuild ? 'Cleaning build cache...' : 'Initializing build...',
232
- error: null,
233
- apkName: null,
234
- apkSize: null,
235
- });
236
-
237
- const hostsToTry = Array.from(
238
- new Set([detectedConfig.host, '10.0.2.2', 'localhost', '127.0.0.1'].filter(Boolean)),
239
- );
240
- const portsToTry = Array.from(new Set([port, 8083, 8081, 8082].filter(Boolean)));
241
-
242
- let buildTriggered = false;
243
-
244
- for (const h of hostsToTry) {
245
- for (const p of portsToTry) {
246
- try {
247
- const controller = new AbortController();
248
- const timeoutId = setTimeout(() => controller.abort(), 2000);
249
- const res = await fetch(
250
- `http://${h}:${p}/__inapp_inspector/build-apk?scheme=${selectedScheme}&clean=${isCleanBuild}`,
251
- { signal: controller.signal },
252
- );
253
- clearTimeout(timeoutId);
254
- if (res.ok) {
255
- buildTriggered = true;
256
- pollBuildStatus();
257
- return;
258
- }
259
- } catch {}
260
- }
261
- }
262
-
263
- if (!buildTriggered) {
264
- setBuildStatus(prev => ({
265
- ...prev,
266
- status: 'failed',
267
- error: 'Cannot reach build server. Ensure npm start or npm run serve-apk is running on host.',
268
- }));
269
- }
270
- };
271
-
272
- // Stop Gradle build on computer via Metro / Standalone Server
273
- const handleStopBuild = async () => {
274
- triggerNativeHaptic('warning');
275
- if (pollingRef.current) clearInterval(pollingRef.current);
276
-
277
- const hostsToTry = Array.from(
278
- new Set([detectedConfig.host, '10.0.2.2', 'localhost', '127.0.0.1'].filter(Boolean)),
279
- );
280
- const portsToTry = Array.from(new Set([port, 8083, 8081, 8082].filter(Boolean)));
281
-
282
- for (const h of hostsToTry) {
283
- for (const p of portsToTry) {
284
- try {
285
- const controller = new AbortController();
286
- const timeoutId = setTimeout(() => controller.abort(), 1500);
287
- await fetch(`http://${h}:${p}/__inapp_inspector/stop-build`, {
288
- signal: controller.signal,
289
- });
290
- clearTimeout(timeoutId);
291
- } catch {}
292
- }
293
- }
294
-
295
- setBuildStatus(prev => ({
296
- ...prev,
297
- status: 'idle',
298
- currentTask: 'Build cancelled by user',
299
- logs: [...(prev.logs || []), '🛑 Build cancelled by user.'],
300
- }));
301
- showToast('Build cancelled');
302
- };
303
-
304
- // Construct target download URL
305
- const apkDownloadUrl = `http://${hostIp}:${port}/${apkFileName.replace(/^\/+/, '')}`;
306
-
307
- const handleShare = () => {
308
- triggerNativeHaptic('light');
309
- Share.share({
310
- message: apkDownloadUrl,
311
- title: 'Install Android APK',
312
- });
313
- };
314
-
315
- const isBuilding = buildStatus.status === 'running';
316
-
317
- return (
318
- <ScrollView
319
- style={styles.scrollArea}
320
- contentContainerStyle={styles.scrollContent}
321
- showsVerticalScrollIndicator={false}>
322
- {/* ─── Hero Card: Multi-Device APK Installer ───────────────────── */}
323
- <View style={styles.heroCard}>
324
- <View style={styles.heroHeader}>
325
- <View style={styles.heroIconWrap}>
326
- <AndroidIcon size={20} color={AppColors.white} />
327
- </View>
328
- <View style={{flex: 1, minWidth: 0}}>
329
- <Text style={styles.heroTitle} numberOfLines={1}>
330
- Multi-Device APK Installer
331
- </Text>
332
- <Text style={styles.heroSubtitle} numberOfLines={1}>
333
- Scan QR code with another Android device to download
334
- </Text>
335
- </View>
336
- <View style={styles.heroBadge}>
337
- <View style={styles.pulseDot} />
338
- <Text style={styles.heroBadgeText}>Live Metro</Text>
339
- </View>
340
- </View>
341
-
342
- {/* Hero Metrics Strip (Matching DeviceInfoTab & PerformanceTab) */}
343
- <View style={styles.heroMetricsStrip}>
344
- <View style={styles.heroMetricItem}>
345
- <Text style={styles.heroMetricLabel}>HOST IP</Text>
346
- <Text style={styles.heroMetricValue} numberOfLines={1}>
347
- {hostIp}
348
- </Text>
349
- </View>
350
- <View style={styles.heroMetricDivider} />
351
- <View style={styles.heroMetricItem}>
352
- <Text style={styles.heroMetricLabel}>PORT</Text>
353
- <Text style={styles.heroMetricValue}>{port}</Text>
354
- </View>
355
- <View style={styles.heroMetricDivider} />
356
- <View style={styles.heroMetricItem}>
357
- <Text style={styles.heroMetricLabel}>APK SIZE</Text>
358
- <Text
359
- style={[
360
- styles.heroMetricValue,
361
- {color: apkSizeMb ? AppColors.emerald500 : AppColors.grayTextWeak},
362
- ]}>
363
- {apkSizeMb ? `${apkSizeMb} MB` : 'Detected'}
364
- </Text>
365
- </View>
366
- <View style={styles.heroMetricDivider} />
367
- <View style={styles.heroMetricItem}>
368
- <Text style={styles.heroMetricLabel}>STATUS</Text>
369
- <Text
370
- style={[
371
- styles.heroMetricValue,
372
- {color: AppColors.emerald500},
373
- ]}>
374
- Ready
375
- </Text>
376
- </View>
377
- </View>
378
- </View>
379
-
380
- {/* ─── Section Card: QR Code & Direct Download ─────────────────── */}
381
- <View style={styles.sectionCard}>
382
- <View style={styles.sectionHeaderRow}>
383
- <Text style={styles.sectionTitle}>QR CODE & DIRECT DOWNLOAD</Text>
384
- <TouchableOpacity
385
- activeOpacity={0.7}
386
- onPress={fetchMetroTelemetry}
387
- style={styles.refreshBtn}>
388
- <RepeatIcon size={12} color={AppColors.purple} />
389
- <Text style={styles.refreshBtnText}>Refresh</Text>
390
- </TouchableOpacity>
391
- </View>
392
-
393
- {/* QR Code Container */}
394
- <View style={styles.qrCenteredWrapper}>
395
- <View style={styles.qrInnerFrame}>
396
- <QRCodeView
397
- value={apkDownloadUrl}
398
- size={235}
399
- color={AppColors.primaryBlack}
400
- backgroundColor={AppColors.white}
401
- />
402
- </View>
403
- </View>
404
- </View>
405
-
406
- {/* ─── Section Card: Build Generator (Gradle) ─────────────────── */}
407
- <View style={styles.sectionCard}>
408
- <View style={styles.sectionHeaderRow}>
409
- <View style={{flexDirection: 'row', alignItems: 'center', gap: 6}}>
410
- <BoltIcon size={13} color={AppColors.purple} />
411
- <Text style={styles.sectionTitle}>BUILD GENERATOR (GRADLE)</Text>
412
- </View>
413
- {buildStatus.status === 'completed' && (
414
- <View style={styles.completedBadge}>
415
- <CheckIcon size={10} color={AppColors.emerald500} />
416
- <Text style={styles.completedBadgeText}>100% Ready</Text>
417
- </View>
418
- )}
419
- </View>
420
-
421
- {/* SubTab Segmented Strip (Matching DeviceInfoTab & PerformanceTab) */}
422
- <View style={styles.subTabStrip}>
423
- <TouchableOpacity
424
- disabled={isBuilding}
425
- activeOpacity={0.7}
426
- onPress={() => {
427
- triggerNativeHaptic('light');
428
- setSelectedScheme('assembleRelease');
429
- }}
430
- style={[
431
- styles.subTabItem,
432
- selectedScheme === 'assembleRelease' && styles.subTabItemActive,
433
- ]}>
434
- <Text
435
- style={[
436
- styles.subTabText,
437
- selectedScheme === 'assembleRelease' && styles.subTabTextActive,
438
- ]}>
439
- ⚡ Release (assembleRelease)
440
- </Text>
441
- </TouchableOpacity>
442
-
443
- <TouchableOpacity
444
- disabled={isBuilding}
445
- activeOpacity={0.7}
446
- onPress={() => {
447
- triggerNativeHaptic('light');
448
- setSelectedScheme('assembleDebug');
449
- }}
450
- style={[
451
- styles.subTabItem,
452
- selectedScheme === 'assembleDebug' && styles.subTabItemActive,
453
- ]}>
454
- <Text
455
- style={[
456
- styles.subTabText,
457
- selectedScheme === 'assembleDebug' && styles.subTabTextActive,
458
- ]}>
459
- 🛠 Debug (assembleDebug)
460
- </Text>
461
- </TouchableOpacity>
462
- </View>
463
-
464
- {/* Clean Build Checkbox */}
465
- <TouchableOpacity
466
- disabled={isBuilding}
467
- activeOpacity={0.7}
468
- onPress={() => {
469
- triggerNativeHaptic('light');
470
- setIsCleanBuild(!isCleanBuild);
471
- }}
472
- style={styles.cleanRow}>
473
- <View
474
- style={[
475
- styles.checkboxBox,
476
- isCleanBuild && styles.checkboxBoxActive,
477
- ]}>
478
- {isCleanBuild && <CheckIcon size={11} color={AppColors.white} />}
479
- </View>
480
- <Text style={styles.cleanLabel}>
481
- Clean build cache <Text style={styles.cleanCode}>(./gradlew clean)</Text>
482
- </Text>
483
- </TouchableOpacity>
484
-
485
- {/* Progress Display Bar (0% to 100%) */}
486
- {isBuilding && (
487
- <View style={styles.progressContainer}>
488
- <View style={styles.progressTopRow}>
489
- <View style={styles.progressTaskGroup}>
490
- <ActivityIndicator size="small" color={AppColors.purple} />
491
- <Text style={styles.progressTaskText} numberOfLines={1}>
492
- {buildStatus.currentTask || 'Executing Gradle tasks...'}
493
- </Text>
494
- </View>
495
- <Text style={styles.progressPercentageText}>
496
- {buildStatus.progress}%
497
- </Text>
498
- </View>
499
-
500
- {/* Animated Progress Bar */}
501
- <View style={styles.progressBarTrack}>
502
- <Animated.View
503
- style={[
504
- styles.progressBarFill,
505
- {
506
- width: progressAnim.interpolate({
507
- inputRange: [0, 100],
508
- outputRange: ['5%', '100%'],
509
- }),
510
- },
511
- ]}
512
- />
513
- </View>
514
- </View>
515
- )}
516
-
517
- {/* Error Container */}
518
- {buildStatus.status === 'failed' && (
519
- <View style={styles.errorContainer}>
520
- <CircleXIcon size={13} color={AppColors.errorColor} />
521
- <Text style={styles.errorText} numberOfLines={2}>
522
- {buildStatus.error || 'Build execution failed.'}
523
- </Text>
524
- </View>
525
- )}
526
-
527
- {/* Live Verbose Console Output */}
528
- {((buildStatus.logs && buildStatus.logs.length > 0) || isBuilding) && (
529
- <View style={styles.consoleContainer}>
530
- <View style={styles.consoleHeaderRow}>
531
- <View style={{flexDirection: 'row', alignItems: 'center', gap: 6}}>
532
- <TerminalConsoleIcon color="#38BDF8" size={12} />
533
- <Text style={styles.consoleHeaderTitle}>GRADLE VERBOSE OUTPUT</Text>
534
- </View>
535
- <TouchableOpacity
536
- activeOpacity={0.7}
537
- onPress={() => setShowVerboseLogs(!showVerboseLogs)}
538
- style={styles.consoleToggleBtn}>
539
- <Text style={styles.consoleToggleText}>
540
- {showVerboseLogs ? 'Hide Console' : 'Show Console'}
541
- </Text>
542
- </TouchableOpacity>
543
- </View>
544
-
545
- {showVerboseLogs && (
546
- <ScrollView
547
- ref={verboseScrollRef}
548
- style={styles.consoleLogBox}
549
- contentContainerStyle={styles.consoleLogContent}
550
- nestedScrollEnabled
551
- showsVerticalScrollIndicator>
552
- {buildStatus.logs && buildStatus.logs.length > 0 ? (
553
- buildStatus.logs.map((logLine, idx) => {
554
- let logColor = '#94A3B8';
555
- if (logLine.startsWith('> Task :')) logColor = '#38BDF8';
556
- else if (logLine.includes('BUILD SUCCESSFUL')) logColor = '#4ADE80';
557
- else if (logLine.includes('FAILURE') || logLine.includes('error:')) logColor = '#F87171';
558
- else if (logLine.includes('UP-TO-DATE')) logColor = '#A78BFA';
559
-
560
- return (
561
- <Text key={idx} style={[styles.consoleLogLine, {color: logColor}]}>
562
- {logLine}
563
- </Text>
564
- );
565
- })
566
- ) : (
567
- <Text style={styles.consoleLogPlaceholder}>
568
- Waiting for Gradle daemon output...
569
- </Text>
570
- )}
571
- </ScrollView>
572
- )}
573
- </View>
574
- )}
575
-
576
- {/* Action Button Row */}
577
- {isBuilding ? (
578
- <View style={styles.buildingActionsRow}>
579
- <View style={styles.buildingStatusPill}>
580
- <ActivityIndicator size="small" color={AppColors.purple} />
581
- <Text style={styles.buildingStatusPillText} numberOfLines={1}>
582
- Building ({buildStatus.progress}%)
583
- </Text>
584
- </View>
585
-
586
- <TouchableScale
587
- onPress={handleStopBuild}
588
- style={styles.stopBtn}>
589
- <CircleXIcon size={13} color={AppColors.white} />
590
- <Text style={styles.stopBtnText}>Stop Build</Text>
591
- </TouchableScale>
592
- </View>
593
- ) : (
594
- <TouchableScale
595
- onPress={handleStartBuild}
596
- style={styles.generateBtn}>
597
- <View style={styles.ctaContentRow}>
598
- <SparkleIcon size={14} color={AppColors.white} />
599
- <Text style={styles.generateBtnText}>
600
- {isCleanBuild ? 'Clean & Generate Build' : 'Generate Build'}
601
- </Text>
602
- </View>
603
- </TouchableScale>
604
- )}
605
- </View>
606
-
607
- {/* ─── Footer Hint Note ───────────────────────────────────────── */}
608
- <View style={styles.footerNoteRow}>
609
- <InfoCircleIcon size={13} color={AppColors.grayTextWeak} />
610
- <Text style={styles.footerNoteText}>
611
- Ensure both Android devices are connected to the same Wi-Fi network.
612
- </Text>
613
- </View>
614
- </ScrollView>
615
- );
616
- };
617
-
618
- const styles = StyleSheet.create({
619
- scrollArea: {
620
- flex: 1,
621
- backgroundColor: AppColors.contentBg,
622
- },
623
- scrollContent: {
624
- padding: 12,
625
- gap: 12,
626
- paddingBottom: 100,
627
- },
628
- heroCard: {
629
- backgroundColor: AppColors.primaryLight,
630
- borderRadius: 14,
631
- borderWidth: 1,
632
- borderColor: AppColors.grayBorderSecondary,
633
- padding: 14,
634
- shadowColor: AppColors.black,
635
- shadowOpacity: 0.04,
636
- shadowRadius: 4,
637
- shadowOffset: {width: 0, height: 2},
638
- elevation: 1,
639
- gap: 12,
640
- },
641
- heroHeader: {
642
- flexDirection: 'row',
643
- alignItems: 'center',
644
- gap: 10,
645
- },
646
- heroIconWrap: {
647
- width: 38,
648
- height: 38,
649
- borderRadius: 10,
650
- backgroundColor: AppColors.purple,
651
- alignItems: 'center',
652
- justifyContent: 'center',
653
- shadowColor: AppColors.purple,
654
- shadowOpacity: 0.25,
655
- shadowRadius: 4,
656
- shadowOffset: {width: 0, height: 2},
657
- elevation: 2,
658
- },
659
- heroTitle: {
660
- fontFamily: AppFonts.interBold,
661
- fontSize: 15,
662
- color: AppColors.primaryBlack,
663
- letterSpacing: -0.2,
664
- },
665
- heroSubtitle: {
666
- fontFamily: AppFonts.interRegular,
667
- fontSize: 11.5,
668
- color: AppColors.grayText,
669
- marginTop: 1,
670
- },
671
- heroBadge: {
672
- flexDirection: 'row',
673
- alignItems: 'center',
674
- gap: 4,
675
- backgroundColor: `${AppColors.emerald500}18`,
676
- paddingHorizontal: 7,
677
- paddingVertical: 3,
678
- borderRadius: 6,
679
- },
680
- pulseDot: {
681
- width: 6,
682
- height: 6,
683
- borderRadius: 3,
684
- backgroundColor: AppColors.emerald500,
685
- },
686
- heroBadgeText: {
687
- fontFamily: AppFonts.interBold,
688
- fontSize: 9.5,
689
- color: AppColors.emerald500,
690
- },
691
- heroMetricsStrip: {
692
- flexDirection: 'row',
693
- alignItems: 'center',
694
- backgroundColor: AppColors.grayBackground,
695
- borderRadius: 10,
696
- paddingVertical: 8,
697
- paddingHorizontal: 10,
698
- },
699
- heroMetricItem: {
700
- flex: 1,
701
- alignItems: 'center',
702
- paddingHorizontal: 2,
703
- minWidth: 0,
704
- },
705
- heroMetricLabel: {
706
- fontFamily: AppFonts.interBold,
707
- fontSize: 8.5,
708
- color: AppColors.grayTextWeak,
709
- letterSpacing: 0.4,
710
- },
711
- heroMetricValue: {
712
- fontFamily: AppFonts.interBold,
713
- fontSize: 11,
714
- color: AppColors.primaryBlack,
715
- marginTop: 2,
716
- },
717
- heroMetricDivider: {
718
- width: 1,
719
- height: 20,
720
- backgroundColor: AppColors.dividerColor,
721
- },
722
- sectionCard: {
723
- backgroundColor: AppColors.primaryLight,
724
- borderRadius: 14,
725
- borderWidth: 1,
726
- borderColor: AppColors.grayBorderSecondary,
727
- padding: 14,
728
- shadowColor: AppColors.black,
729
- shadowOpacity: 0.03,
730
- shadowRadius: 3,
731
- shadowOffset: {width: 0, height: 1},
732
- elevation: 1,
733
- gap: 12,
734
- },
735
- sectionHeaderRow: {
736
- flexDirection: 'row',
737
- alignItems: 'center',
738
- justifyContent: 'space-between',
739
- },
740
- sectionTitle: {
741
- fontFamily: AppFonts.interBold,
742
- fontSize: 10.5,
743
- color: AppColors.grayTextWeak,
744
- letterSpacing: 0.8,
745
- textTransform: 'uppercase',
746
- },
747
- refreshBtn: {
748
- flexDirection: 'row',
749
- alignItems: 'center',
750
- gap: 4,
751
- paddingHorizontal: 7,
752
- paddingVertical: 3,
753
- borderRadius: 6,
754
- backgroundColor: `${AppColors.purple}12`,
755
- },
756
- refreshBtnText: {
757
- fontFamily: AppFonts.interBold,
758
- fontSize: 10,
759
- color: AppColors.purple,
760
- },
761
- qrCenteredWrapper: {
762
- alignItems: 'center',
763
- justifyContent: 'center',
764
- backgroundColor: AppColors.grayBackground,
765
- padding: 12,
766
- borderRadius: 12,
767
- borderWidth: 1,
768
- borderColor: AppColors.grayBorderSecondary,
769
- },
770
- qrInnerFrame: {
771
- backgroundColor: AppColors.white,
772
- padding: 6,
773
- borderRadius: 8,
774
- },
775
- urlBox: {
776
- flexDirection: 'row',
777
- alignItems: 'center',
778
- backgroundColor: AppColors.grayBackground,
779
- borderRadius: 10,
780
- paddingLeft: 10,
781
- paddingRight: 6,
782
- paddingVertical: 6,
783
- borderWidth: 1,
784
- borderColor: AppColors.grayBorderSecondary,
785
- gap: 8,
786
- },
787
- urlText: {
788
- flex: 1,
789
- fontFamily: AppFonts.interMedium,
790
- fontSize: 11.5,
791
- color: AppColors.skyBlue,
792
- },
793
- actionsRow: {
794
- flexDirection: 'row',
795
- gap: 10,
796
- },
797
- actionBtnSecondary: {
798
- flex: 1,
799
- flexDirection: 'row',
800
- alignItems: 'center',
801
- justifyContent: 'center',
802
- gap: 6,
803
- paddingVertical: 9,
804
- borderRadius: 10,
805
- borderWidth: 1,
806
- borderColor: AppColors.grayBorderSecondary,
807
- backgroundColor: AppColors.grayBackground,
808
- },
809
- actionBtnSecondaryText: {
810
- fontFamily: AppFonts.interBold,
811
- fontSize: 12,
812
- color: AppColors.grayTextStrong,
813
- },
814
- actionBtnPrimary: {
815
- flex: 1,
816
- flexDirection: 'row',
817
- alignItems: 'center',
818
- justifyContent: 'center',
819
- gap: 6,
820
- paddingVertical: 9,
821
- borderRadius: 10,
822
- backgroundColor: AppColors.purple,
823
- shadowColor: AppColors.purple,
824
- shadowOpacity: 0.25,
825
- shadowRadius: 4,
826
- shadowOffset: {width: 0, height: 2},
827
- elevation: 2,
828
- },
829
- actionBtnPrimaryText: {
830
- fontFamily: AppFonts.interBold,
831
- fontSize: 12,
832
- color: AppColors.white,
833
- },
834
- completedBadge: {
835
- flexDirection: 'row',
836
- alignItems: 'center',
837
- gap: 3,
838
- backgroundColor: `${AppColors.emerald500}18`,
839
- paddingHorizontal: 6,
840
- paddingVertical: 2,
841
- borderRadius: 5,
842
- },
843
- completedBadgeText: {
844
- fontFamily: AppFonts.interBold,
845
- fontSize: 9.5,
846
- color: AppColors.emerald500,
847
- },
848
- subTabStrip: {
849
- flexDirection: 'row',
850
- backgroundColor: AppColors.grayBackground,
851
- borderRadius: 8,
852
- padding: 2,
853
- borderWidth: 1,
854
- borderColor: AppColors.grayBorderSecondary,
855
- },
856
- subTabItem: {
857
- flex: 1,
858
- paddingVertical: 7,
859
- borderRadius: 6,
860
- alignItems: 'center',
861
- justifyContent: 'center',
862
- },
863
- subTabItemActive: {
864
- backgroundColor: AppColors.purple,
865
- shadowColor: AppColors.purple,
866
- shadowOpacity: 0.2,
867
- shadowRadius: 3,
868
- shadowOffset: {width: 0, height: 1},
869
- elevation: 1,
870
- },
871
- subTabText: {
872
- fontFamily: AppFonts.interMedium,
873
- fontSize: 11,
874
- color: AppColors.grayText,
875
- },
876
- subTabTextActive: {
877
- fontFamily: AppFonts.interBold,
878
- color: AppColors.white,
879
- },
880
- cleanRow: {
881
- flexDirection: 'row',
882
- alignItems: 'center',
883
- gap: 8,
884
- paddingVertical: 2,
885
- },
886
- checkboxBox: {
887
- width: 18,
888
- height: 18,
889
- borderRadius: 4,
890
- borderWidth: 1.5,
891
- borderColor: AppColors.grayBorderSecondary,
892
- backgroundColor: AppColors.grayBackground,
893
- alignItems: 'center',
894
- justifyContent: 'center',
895
- },
896
- checkboxBoxActive: {
897
- backgroundColor: AppColors.purple,
898
- borderColor: AppColors.purple,
899
- },
900
- cleanLabel: {
901
- fontFamily: AppFonts.interMedium,
902
- fontSize: 11.5,
903
- color: AppColors.grayTextStrong,
904
- },
905
- cleanCode: {
906
- fontFamily: AppFonts.interRegular,
907
- color: AppColors.grayTextWeak,
908
- fontSize: 10.5,
909
- },
910
- progressContainer: {
911
- backgroundColor: AppColors.grayBackground,
912
- borderRadius: 10,
913
- padding: 10,
914
- gap: 6,
915
- borderWidth: 1,
916
- borderColor: AppColors.grayBorderSecondary,
917
- },
918
- progressTopRow: {
919
- flexDirection: 'row',
920
- alignItems: 'center',
921
- justifyContent: 'space-between',
922
- },
923
- progressTaskGroup: {
924
- flexDirection: 'row',
925
- alignItems: 'center',
926
- gap: 6,
927
- flex: 1,
928
- paddingRight: 8,
929
- },
930
- progressTaskText: {
931
- fontFamily: AppFonts.interMedium,
932
- fontSize: 11,
933
- color: AppColors.primaryBlack,
934
- flex: 1,
935
- },
936
- progressPercentageText: {
937
- fontFamily: AppFonts.interBold,
938
- fontSize: 11.5,
939
- color: AppColors.purple,
940
- },
941
- progressBarTrack: {
942
- width: '100%',
943
- height: 6,
944
- borderRadius: 3,
945
- backgroundColor: AppColors.grayBorderSecondary,
946
- overflow: 'hidden',
947
- },
948
- progressBarFill: {
949
- height: '100%',
950
- backgroundColor: AppColors.purple,
951
- borderRadius: 3,
952
- },
953
- errorContainer: {
954
- flexDirection: 'row',
955
- alignItems: 'center',
956
- gap: 6,
957
- backgroundColor: `${AppColors.errorColor}12`,
958
- padding: 8,
959
- borderRadius: 8,
960
- borderWidth: 1,
961
- borderColor: `${AppColors.errorColor}25`,
962
- },
963
- errorText: {
964
- fontFamily: AppFonts.interRegular,
965
- fontSize: 11,
966
- color: AppColors.errorColor,
967
- flex: 1,
968
- },
969
- consoleContainer: {
970
- backgroundColor: '#0F172A',
971
- borderRadius: 10,
972
- borderWidth: 1,
973
- borderColor: '#1E293B',
974
- overflow: 'hidden',
975
- marginTop: 4,
976
- },
977
- consoleHeaderRow: {
978
- flexDirection: 'row',
979
- alignItems: 'center',
980
- justifyContent: 'space-between',
981
- backgroundColor: '#1E293B',
982
- paddingHorizontal: 10,
983
- paddingVertical: 6,
984
- },
985
- consoleHeaderTitle: {
986
- fontFamily: AppFonts.interBold,
987
- fontSize: 10,
988
- color: '#38BDF8',
989
- letterSpacing: 0.5,
990
- },
991
- consoleToggleBtn: {
992
- paddingHorizontal: 6,
993
- paddingVertical: 2,
994
- borderRadius: 4,
995
- backgroundColor: 'rgba(255,255,255,0.1)',
996
- },
997
- consoleToggleText: {
998
- fontFamily: AppFonts.interMedium,
999
- fontSize: 9.5,
1000
- color: '#94A3B8',
1001
- },
1002
- consoleLogBox: {
1003
- maxHeight: 140,
1004
- paddingHorizontal: 10,
1005
- paddingVertical: 8,
1006
- },
1007
- consoleLogContent: {
1008
- gap: 3,
1009
- },
1010
- consoleLogLine: {
1011
- fontFamily: AppFonts.interRegular,
1012
- fontSize: 10,
1013
- lineHeight: 14,
1014
- },
1015
- consoleLogPlaceholder: {
1016
- fontFamily: AppFonts.interRegular,
1017
- fontSize: 10,
1018
- color: '#64748B',
1019
- fontStyle: 'italic',
1020
- },
1021
- generateBtn: {
1022
- backgroundColor: AppColors.purple,
1023
- borderRadius: 10,
1024
- paddingVertical: 10,
1025
- alignItems: 'center',
1026
- justifyContent: 'center',
1027
- shadowColor: AppColors.purple,
1028
- shadowOpacity: 0.25,
1029
- shadowRadius: 4,
1030
- shadowOffset: {width: 0, height: 2},
1031
- elevation: 2,
1032
- },
1033
- generateBtnDisabled: {
1034
- opacity: 0.7,
1035
- },
1036
- buildingActionsRow: {
1037
- flexDirection: 'row',
1038
- alignItems: 'center',
1039
- gap: 10,
1040
- },
1041
- buildingStatusPill: {
1042
- flex: 1,
1043
- flexDirection: 'row',
1044
- alignItems: 'center',
1045
- justifyContent: 'center',
1046
- gap: 8,
1047
- backgroundColor: `${AppColors.purple}14`,
1048
- borderRadius: 10,
1049
- paddingVertical: 10,
1050
- borderWidth: 1,
1051
- borderColor: `${AppColors.purple}30`,
1052
- },
1053
- buildingStatusPillText: {
1054
- fontFamily: AppFonts.interBold,
1055
- fontSize: 12,
1056
- color: AppColors.purple,
1057
- },
1058
- stopBtn: {
1059
- flexDirection: 'row',
1060
- alignItems: 'center',
1061
- justifyContent: 'center',
1062
- gap: 6,
1063
- backgroundColor: AppColors.errorColor,
1064
- borderRadius: 10,
1065
- paddingHorizontal: 16,
1066
- paddingVertical: 10,
1067
- shadowColor: AppColors.errorColor,
1068
- shadowOpacity: 0.25,
1069
- shadowRadius: 4,
1070
- shadowOffset: {width: 0, height: 2},
1071
- elevation: 2,
1072
- },
1073
- stopBtnText: {
1074
- fontFamily: AppFonts.interBold,
1075
- fontSize: 12,
1076
- color: AppColors.white,
1077
- },
1078
- ctaContentRow: {
1079
- flexDirection: 'row',
1080
- alignItems: 'center',
1081
- gap: 6,
1082
- },
1083
- generateBtnText: {
1084
- fontFamily: AppFonts.interBold,
1085
- fontSize: 12.5,
1086
- color: AppColors.white,
1087
- },
1088
- footerNoteRow: {
1089
- flexDirection: 'row',
1090
- alignItems: 'center',
1091
- gap: 6,
1092
- paddingHorizontal: 8,
1093
- },
1094
- footerNoteText: {
1095
- fontFamily: AppFonts.interRegular,
1096
- fontSize: 11,
1097
- color: AppColors.grayTextWeak,
1098
- textAlign: 'center',
1099
- flex: 1,
1100
- },
1101
- });
1102
-
1103
- export default DebuggingTab;