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,958 +1,197 @@
1
- import React, { useState, useEffect, useMemo, useCallback, useRef } from 'react';
2
- import { View, Text, ScrollView, StyleSheet, NativeModules, Share, TouchableOpacity, ActivityIndicator, Animated, } from 'react-native';
3
- import { AppColors } from '../../styles/AppColors';
4
- import { AppFonts } from '../../styles/AppFonts';
5
- import QRCodeView from '../QRCodeView';
6
- import TouchableScale from '../TouchableScale';
7
- import { showToast } from '../../helpers/toast';
8
- import { triggerNativeHaptic } from '../../native/NativeInspector';
9
- import { InfoCircleIcon, CheckIcon, BoltIcon, CircleXIcon, SparkleIcon, AndroidIcon, RepeatIcon, } from '../NetworkIcons';
10
- import Svg, { Path } from 'react-native-svg';
11
- const TerminalConsoleIcon = ({ color = AppColors.purple, size = 13 }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
12
- <Path d="M4 17l6-6-6-6M12 19h8" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
13
- </Svg>);
14
- export const DebuggingTab = () => {
15
- const detectedConfig = useMemo(() => {
16
- const scriptURL = NativeModules.SourceCode?.scriptURL || '';
17
- let host = 'localhost';
18
- let port = 8081;
19
- try {
20
- if (scriptURL.includes('://')) {
21
- const urlWithoutScheme = scriptURL.split('://')[1];
22
- const hostAndPort = urlWithoutScheme.split('/')[0];
23
- if (hostAndPort.includes(':')) {
24
- const parts = hostAndPort.split(':');
25
- host = parts[0];
26
- const parsedPort = parseInt(parts[1], 10);
27
- if (!isNaN(parsedPort))
28
- port = parsedPort;
29
- }
30
- else {
31
- host = hostAndPort;
32
- }
33
- }
34
- }
35
- catch { }
36
- return { host, port, scriptURL };
37
- }, []);
38
- const [hostIp, setHostIp] = useState(() => {
39
- if (detectedConfig.host &&
40
- detectedConfig.host !== 'localhost' &&
41
- detectedConfig.host !== '127.0.0.1' &&
42
- detectedConfig.host !== '10.0.2.2') {
43
- return detectedConfig.host;
44
- }
45
- return '192.168.1.2';
46
- });
47
- const [port, setPort] = useState(detectedConfig.port || 8083);
48
- const [apkFileName, setApkFileName] = useState('app-debug.apk');
49
- const [apkSizeMb, setApkSizeMb] = useState(null);
50
- const [selectedScheme, setSelectedScheme] = useState('assembleRelease');
51
- const [isCleanBuild, setIsCleanBuild] = useState(true);
52
- const [buildStatus, setBuildStatus] = useState({
53
- status: 'idle',
54
- scheme: 'assembleRelease',
55
- clean: true,
56
- progress: 0,
57
- currentTask: '',
58
- error: null,
59
- apkName: null,
60
- apkSize: null,
61
- });
62
- const pollingRef = useRef(null);
63
- const progressAnim = useRef(new Animated.Value(0)).current;
64
- const [showVerboseLogs, setShowVerboseLogs] = useState(true);
65
- const verboseScrollRef = useRef(null);
66
- useEffect(() => {
67
- Animated.timing(progressAnim, {
68
- toValue: Math.max(0, Math.min(100, buildStatus.progress)),
69
- duration: 350,
70
- useNativeDriver: false,
71
- }).start();
72
- }, [buildStatus.progress, progressAnim]);
73
- useEffect(() => {
74
- if (buildStatus.logs && buildStatus.logs.length > 0) {
75
- setTimeout(() => {
76
- verboseScrollRef.current?.scrollToEnd({ animated: true });
77
- }, 50);
78
- }
79
- }, [buildStatus.logs]);
80
- const fetchMetroTelemetry = useCallback(async () => {
81
- const hostsToTry = Array.from(new Set([detectedConfig.host, '10.0.2.2', 'localhost', '127.0.0.1'].filter(Boolean)));
82
- const portsToTry = Array.from(new Set([detectedConfig.port, 8083, 8081, 8082].filter(Boolean)));
83
- for (const h of hostsToTry) {
84
- for (const p of portsToTry) {
85
- try {
86
- const controller = new AbortController();
87
- const timeoutId = setTimeout(() => controller.abort(), 1200);
88
- const res = await fetch(`http://${h}:${p}/__inapp_inspector/apk-info`, {
89
- signal: controller.signal,
90
- });
91
- clearTimeout(timeoutId);
92
- if (res.ok) {
93
- const data = await res.json();
94
- if (data.hostIp &&
95
- data.hostIp !== '127.0.0.1' &&
96
- data.hostIp !== 'localhost' &&
97
- data.hostIp !== '10.0.2.2') {
98
- setHostIp(data.hostIp);
99
- }
100
- if (data.port) {
101
- setPort(data.port);
102
- }
103
- if (data.apkName) {
104
- setApkFileName(data.apkName);
105
- }
106
- if (data.apkSize) {
107
- setApkSizeMb((data.apkSize / (1024 * 1024)).toFixed(1));
108
- }
109
- return;
110
- }
111
- }
112
- catch { }
113
- }
114
- }
115
- }, [detectedConfig.host, detectedConfig.port]);
116
- useEffect(() => {
117
- fetchMetroTelemetry();
118
- }, [fetchMetroTelemetry]);
119
- useEffect(() => {
120
- return () => {
121
- if (pollingRef.current) {
122
- clearInterval(pollingRef.current);
123
- }
124
- };
125
- }, []);
126
- const pollBuildStatus = useCallback(() => {
127
- if (pollingRef.current)
128
- clearInterval(pollingRef.current);
129
- const targetHost = detectedConfig.host || '10.0.2.2';
130
- pollingRef.current = setInterval(async () => {
131
- try {
132
- const res = await fetch(`http://${targetHost}:${port}/__inapp_inspector/build-status`);
133
- if (res.ok) {
134
- const data = await res.json();
135
- setBuildStatus(data);
136
- if (data.status === 'completed') {
137
- if (pollingRef.current)
138
- clearInterval(pollingRef.current);
139
- triggerNativeHaptic('success');
140
- showToast('✓ APK Build Generated Successfully!');
141
- if (data.apkSize) {
142
- setApkSizeMb((data.apkSize / (1024 * 1024)).toFixed(1));
143
- }
144
- if (data.apkName) {
145
- setApkFileName(data.apkName);
146
- }
147
- fetchMetroTelemetry();
148
- }
149
- else if (data.status === 'failed') {
150
- if (pollingRef.current)
151
- clearInterval(pollingRef.current);
152
- triggerNativeHaptic('error');
153
- showToast('✕ Build Failed: ' + (data.error || 'Gradle error'));
154
- }
155
- }
156
- }
157
- catch { }
158
- }, 1000);
159
- }, [detectedConfig.host, port, fetchMetroTelemetry]);
160
- const handleStartBuild = async () => {
161
- triggerNativeHaptic('medium');
162
- setBuildStatus({
163
- status: 'running',
164
- scheme: selectedScheme,
165
- clean: isCleanBuild,
166
- progress: 5,
167
- currentTask: isCleanBuild ? 'Cleaning build cache...' : 'Initializing build...',
168
- error: null,
169
- apkName: null,
170
- apkSize: null,
171
- });
172
- const hostsToTry = Array.from(new Set([detectedConfig.host, '10.0.2.2', 'localhost', '127.0.0.1'].filter(Boolean)));
173
- const portsToTry = Array.from(new Set([port, 8083, 8081, 8082].filter(Boolean)));
174
- let buildTriggered = false;
175
- for (const h of hostsToTry) {
176
- for (const p of portsToTry) {
177
- try {
178
- const controller = new AbortController();
179
- const timeoutId = setTimeout(() => controller.abort(), 2000);
180
- const res = await fetch(`http://${h}:${p}/__inapp_inspector/build-apk?scheme=${selectedScheme}&clean=${isCleanBuild}`, { signal: controller.signal });
181
- clearTimeout(timeoutId);
182
- if (res.ok) {
183
- buildTriggered = true;
184
- pollBuildStatus();
185
- return;
186
- }
187
- }
188
- catch { }
189
- }
190
- }
191
- if (!buildTriggered) {
192
- setBuildStatus(prev => ({
193
- ...prev,
194
- status: 'failed',
195
- error: 'Cannot reach build server. Ensure npm start or npm run serve-apk is running on host.',
196
- }));
197
- }
198
- };
199
- const handleStopBuild = async () => {
200
- triggerNativeHaptic('warning');
201
- if (pollingRef.current)
202
- clearInterval(pollingRef.current);
203
- const hostsToTry = Array.from(new Set([detectedConfig.host, '10.0.2.2', 'localhost', '127.0.0.1'].filter(Boolean)));
204
- const portsToTry = Array.from(new Set([port, 8083, 8081, 8082].filter(Boolean)));
205
- for (const h of hostsToTry) {
206
- for (const p of portsToTry) {
207
- try {
208
- const controller = new AbortController();
209
- const timeoutId = setTimeout(() => controller.abort(), 1500);
210
- await fetch(`http://${h}:${p}/__inapp_inspector/stop-build`, {
211
- signal: controller.signal,
212
- });
213
- clearTimeout(timeoutId);
214
- }
215
- catch { }
216
- }
217
- }
218
- setBuildStatus(prev => ({
219
- ...prev,
220
- status: 'idle',
221
- currentTask: 'Build cancelled by user',
222
- logs: [...(prev.logs || []), '🛑 Build cancelled by user.'],
223
- }));
224
- showToast('Build cancelled');
225
- };
226
- const apkDownloadUrl = `http://${hostIp}:${port}/${apkFileName.replace(/^\/+/, '')}`;
227
- const handleShare = () => {
228
- triggerNativeHaptic('light');
229
- Share.share({
230
- message: apkDownloadUrl,
231
- title: 'Install Android APK',
232
- });
233
- };
234
- const isBuilding = buildStatus.status === 'running';
235
- return (<ScrollView style={styles.scrollArea} contentContainerStyle={styles.scrollContent} showsVerticalScrollIndicator={false}>
1
+ import{useState as M,useEffect as G,useMemo as Le,useCallback as ie,useRef as X}from"react";import{View as T,Text as C,ScrollView as Te,StyleSheet as We,NativeModules as Pe,Share as He,TouchableOpacity as U,ActivityIndicator as Ce,Animated as Z}from"react-native";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as S}from"../../styles/AppFonts";import Ee from"../QRCodeView";import Be from"../TouchableScale";import{showToast as J}from"../../helpers/toast";import{triggerNativeHaptic as L}from"../../native/NativeInspector";import{InfoCircleIcon as $e,CheckIcon as Se,BoltIcon as Re,CircleXIcon as Ie,SparkleIcon as Ne,AndroidIcon as Ue,RepeatIcon as _e,WrenchIcon as Ge}from"../NetworkIcons";import Ke,{Path as Qe}from"react-native-svg";const Xe=({color:I=e.purple,size:$=13})=><Ke width={$}height={$}viewBox="0 0 24 24"fill="none">
2
+ <Qe d="M4 17l6-6-6-6M12 19h8"stroke={I}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
3
+ </Ke>;export const DebuggingTab=()=>{const I=Le(()=>{const k=Pe.SourceCode?.scriptURL||"";let V="localhost",B=8081;try{if(k.includes("://")){const A=k.split("://")[1].split("/")[0];if(A.includes(":")){const v=A.split(":");V=v[0];const P=parseInt(v[1],10);isNaN(P)||(B=P)}else V=A}}catch{}return{host:V,port:B,scriptURL:k}},[]),[$,Ve]=M(()=>I.host&&I.host!=="localhost"&&I.host!=="127.0.0.1"&&I.host!=="10.0.2.2"?I.host:"192.168.1.2"),[H,ze]=M(I.port||8083),[De,Y]=M("app-debug.apk"),[q,ee]=M(null),[F,oe]=M("assembleRelease"),[W,Ae]=M(!0),[R,_]=M({status:"idle",scheme:"assembleRelease",clean:!0,progress:0,currentTask:"",error:null,apkName:null,apkSize:null}),D=X(null),K=X(new Z.Value(0)).current,[Q,ve]=M(!0),te=X(null);G(()=>{Z.timing(K,{toValue:Math.max(0,Math.min(100,R.progress)),duration:350,useNativeDriver:!1}).start()},[R.progress,K]),G(()=>{R.logs&&R.logs.length>0&&setTimeout(()=>{te.current?.scrollToEnd({animated:!0})},50)},[R.logs]);const N=ie(async()=>{const k=Array.from(new Set([I.host,"10.0.2.2","localhost","127.0.0.1"].filter(Boolean))),V=Array.from(new Set([I.port,8083,8081,8082].filter(Boolean)));for(const B of k)for(const O of V)try{const A=new AbortController,v=setTimeout(()=>A.abort(),1200),P=await fetch(`http://${B}:${O}/__inapp_inspector/apk-info`,{signal:A.signal});if(clearTimeout(v),P.ok){const z=await P.json();z.hostIp&&z.hostIp!=="127.0.0.1"&&z.hostIp!=="localhost"&&z.hostIp!=="10.0.2.2"&&Ve(z.hostIp),z.port&&ze(z.port),z.apkName&&Y(z.apkName),z.apkSize&&ee((z.apkSize/(1024*1024)).toFixed(1));return}}catch{}},[I.host,I.port]);G(()=>{N()},[N]),G(()=>()=>{D.current&&clearInterval(D.current)},[]);const Fe=ie(()=>{D.current&&clearInterval(D.current);const k=I.host||"10.0.2.2";D.current=setInterval(async()=>{try{const V=await fetch(`http://${k}:${H}/__inapp_inspector/build-status`);if(V.ok){const B=await V.json();_(B),B.status==="completed"?(D.current&&clearInterval(D.current),L("success"),J("\u2713 APK Build Generated Successfully!"),B.apkSize&&ee((B.apkSize/(1024*1024)).toFixed(1)),B.apkName&&Y(B.apkName),N()):B.status==="failed"&&(D.current&&clearInterval(D.current),L("error"),J("\u2715 Build Failed: "+(B.error||"Gradle error")))}}catch{}},1e3)},[I.host,H,N]),Oe=async()=>{L("medium"),_({status:"running",scheme:F,clean:W,progress:5,currentTask:W?"Cleaning build cache...":"Initializing build...",error:null,apkName:null,apkSize:null});const k=Array.from(new Set([I.host,"10.0.2.2","localhost","127.0.0.1"].filter(Boolean))),V=Array.from(new Set([H,8083,8081,8082].filter(Boolean)));let B=!1;for(const O of k)for(const A of V)try{const v=new AbortController,P=setTimeout(()=>v.abort(),2e3),z=await fetch(`http://${O}:${A}/__inapp_inspector/build-apk?scheme=${F}&clean=${W}`,{signal:v.signal});if(clearTimeout(P),z.ok){B=!0,Fe();return}}catch{}B||_(O=>({...O,status:"failed",error:"Cannot reach build server. Ensure npm start or npm run serve-apk is running on host."}))},Me=async()=>{L("warning"),D.current&&clearInterval(D.current);const k=Array.from(new Set([I.host,"10.0.2.2","localhost","127.0.0.1"].filter(Boolean))),V=Array.from(new Set([H,8083,8081,8082].filter(Boolean)));for(const B of k)for(const O of V)try{const A=new AbortController,v=setTimeout(()=>A.abort(),1500);await fetch(`http://${B}:${O}/__inapp_inspector/stop-build`,{signal:A.signal}),clearTimeout(v)}catch{}_(B=>({...B,status:"idle",currentTask:"Build cancelled by user",logs:[...B.logs||[],"\u{1F6D1} Build cancelled by user."]})),J("Build cancelled")},re=`http://${$}:${H}/${De.replace(/^\/+/,"")}`,Ze=()=>{L("light"),He.share({message:re,title:"Install Android APK"})},E=R.status==="running";return<Te style={o.scrollArea}contentContainerStyle={o.scrollContent}showsVerticalScrollIndicator={!1}>
236
4
 
237
- <View style={styles.heroCard}>
238
- <View style={styles.heroHeader}>
239
- <View style={styles.heroIconWrap}>
240
- <AndroidIcon size={20} color={AppColors.white}/>
241
- </View>
242
- <View style={{ flex: 1, minWidth: 0 }}>
243
- <Text style={styles.heroTitle} numberOfLines={1}>
5
+ <T style={o.heroCard}>
6
+ <T style={o.heroHeader}>
7
+ <T style={o.heroIconWrap}>
8
+ <Ue size={20}color={e.white}/>
9
+ </T>
10
+ <T style={{flex:1,minWidth:0}}>
11
+ <C style={o.heroTitle}numberOfLines={1}>
244
12
  Multi-Device APK Installer
245
- </Text>
246
- <Text style={styles.heroSubtitle} numberOfLines={1}>
13
+ </C>
14
+ <C style={o.heroSubtitle}numberOfLines={1}>
247
15
  Scan QR code with another Android device to download
248
- </Text>
249
- </View>
250
- <View style={styles.heroBadge}>
251
- <View style={styles.pulseDot}/>
252
- <Text style={styles.heroBadgeText}>Live Metro</Text>
253
- </View>
254
- </View>
16
+ </C>
17
+ </T>
18
+ <T style={o.heroBadge}>
19
+ <T style={o.pulseDot}/>
20
+ <C style={o.heroBadgeText}>Live Metro</C>
21
+ </T>
22
+ </T>
255
23
 
256
24
 
257
- <View style={styles.heroMetricsStrip}>
258
- <View style={styles.heroMetricItem}>
259
- <Text style={styles.heroMetricLabel}>HOST IP</Text>
260
- <Text style={styles.heroMetricValue} numberOfLines={1}>
261
- {hostIp}
262
- </Text>
263
- </View>
264
- <View style={styles.heroMetricDivider}/>
265
- <View style={styles.heroMetricItem}>
266
- <Text style={styles.heroMetricLabel}>PORT</Text>
267
- <Text style={styles.heroMetricValue}>{port}</Text>
268
- </View>
269
- <View style={styles.heroMetricDivider}/>
270
- <View style={styles.heroMetricItem}>
271
- <Text style={styles.heroMetricLabel}>APK SIZE</Text>
272
- <Text style={[
273
- styles.heroMetricValue,
274
- { color: apkSizeMb ? AppColors.emerald500 : AppColors.grayTextWeak },
275
- ]}>
276
- {apkSizeMb ? `${apkSizeMb} MB` : 'Detected'}
277
- </Text>
278
- </View>
279
- <View style={styles.heroMetricDivider}/>
280
- <View style={styles.heroMetricItem}>
281
- <Text style={styles.heroMetricLabel}>STATUS</Text>
282
- <Text style={[
283
- styles.heroMetricValue,
284
- { color: AppColors.emerald500 },
285
- ]}>
25
+ <T style={o.heroMetricsStrip}>
26
+ <T style={o.heroMetricItem}>
27
+ <C style={o.heroMetricLabel}>HOST IP</C>
28
+ <C style={o.heroMetricValue}numberOfLines={1}>
29
+ {$}
30
+ </C>
31
+ </T>
32
+ <T style={o.heroMetricDivider}/>
33
+ <T style={o.heroMetricItem}>
34
+ <C style={o.heroMetricLabel}>PORT</C>
35
+ <C style={o.heroMetricValue}>{H}</C>
36
+ </T>
37
+ <T style={o.heroMetricDivider}/>
38
+ <T style={o.heroMetricItem}>
39
+ <C style={o.heroMetricLabel}>APK SIZE</C>
40
+ <C style={[o.heroMetricValue,{color:q?e.emerald500:e.grayTextWeak}]}>
41
+ {q?`${q} MB`:"Detected"}
42
+ </C>
43
+ </T>
44
+ <T style={o.heroMetricDivider}/>
45
+ <T style={o.heroMetricItem}>
46
+ <C style={o.heroMetricLabel}>STATUS</C>
47
+ <C style={[o.heroMetricValue,{color:e.emerald500}]}>
286
48
  Ready
287
- </Text>
288
- </View>
289
- </View>
290
- </View>
49
+ </C>
50
+ </T>
51
+ </T>
52
+ </T>
291
53
 
292
54
 
293
- <View style={styles.sectionCard}>
294
- <View style={styles.sectionHeaderRow}>
295
- <Text style={styles.sectionTitle}>QR CODE & DIRECT DOWNLOAD</Text>
296
- <TouchableOpacity activeOpacity={0.7} onPress={fetchMetroTelemetry} style={styles.refreshBtn}>
297
- <RepeatIcon size={12} color={AppColors.purple}/>
298
- <Text style={styles.refreshBtnText}>Refresh</Text>
299
- </TouchableOpacity>
300
- </View>
55
+ <T style={o.sectionCard}>
56
+ <T style={o.sectionHeaderRow}>
57
+ <C style={o.sectionTitle}>QR CODE & DIRECT DOWNLOAD</C>
58
+ <U activeOpacity={.7}onPress={N}style={o.refreshBtn}>
59
+ <_e size={12}color={e.purple}/>
60
+ <C style={o.refreshBtnText}>Refresh</C>
61
+ </U>
62
+ </T>
301
63
 
302
64
 
303
- <View style={styles.qrCenteredWrapper}>
304
- <View style={styles.qrInnerFrame}>
305
- <QRCodeView value={apkDownloadUrl} size={235} color={AppColors.primaryBlack} backgroundColor={AppColors.white}/>
306
- </View>
307
- </View>
308
- </View>
65
+ <T style={o.qrCenteredWrapper}>
66
+ <T style={o.qrInnerFrame}>
67
+ <Ee value={re}size={235}color={e.primaryBlack}backgroundColor={e.white}/>
68
+ </T>
69
+ </T>
70
+ </T>
309
71
 
310
72
 
311
- <View style={styles.sectionCard}>
312
- <View style={styles.sectionHeaderRow}>
313
- <View style={{ flexDirection: 'row', alignItems: 'center', gap: 6 }}>
314
- <BoltIcon size={13} color={AppColors.purple}/>
315
- <Text style={styles.sectionTitle}>BUILD GENERATOR (GRADLE)</Text>
316
- </View>
317
- {buildStatus.status === 'completed' && (<View style={styles.completedBadge}>
318
- <CheckIcon size={10} color={AppColors.emerald500}/>
319
- <Text style={styles.completedBadgeText}>100% Ready</Text>
320
- </View>)}
321
- </View>
73
+ <T style={o.sectionCard}>
74
+ <T style={o.sectionHeaderRow}>
75
+ <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
76
+ <Re size={13}color={e.purple}/>
77
+ <C style={o.sectionTitle}>BUILD GENERATOR (GRADLE)</C>
78
+ </T>
79
+ {R.status==="completed"&&<T style={o.completedBadge}>
80
+ <Se size={10}color={e.emerald500}/>
81
+ <C style={o.completedBadgeText}>100% Ready</C>
82
+ </T>}
83
+ </T>
322
84
 
323
85
 
324
- <View style={styles.subTabStrip}>
325
- <TouchableOpacity disabled={isBuilding} activeOpacity={0.7} onPress={() => {
326
- triggerNativeHaptic('light');
327
- setSelectedScheme('assembleRelease');
328
- }} style={[
329
- styles.subTabItem,
330
- selectedScheme === 'assembleRelease' && styles.subTabItemActive,
331
- ]}>
332
- <Text style={[
333
- styles.subTabText,
334
- selectedScheme === 'assembleRelease' && styles.subTabTextActive,
335
- ]}>
336
- ⚡ Release (assembleRelease)
337
- </Text>
338
- </TouchableOpacity>
86
+ <T style={o.subTabStrip}>
87
+ <U disabled={E}activeOpacity={.7}onPress={()=>{L("light"),oe("assembleRelease")}}style={[o.subTabItem,F==="assembleRelease"&&o.subTabItemActive]}>
88
+ <T style={{flexDirection:"row",alignItems:"center",gap:5}}>
89
+ <Re size={12}color={F==="assembleRelease"?e.white:e.grayText}/>
90
+ <C style={[o.subTabText,F==="assembleRelease"&&o.subTabTextActive]}>
91
+ Release (assembleRelease)
92
+ </C>
93
+ </T>
94
+ </U>
339
95
 
340
- <TouchableOpacity disabled={isBuilding} activeOpacity={0.7} onPress={() => {
341
- triggerNativeHaptic('light');
342
- setSelectedScheme('assembleDebug');
343
- }} style={[
344
- styles.subTabItem,
345
- selectedScheme === 'assembleDebug' && styles.subTabItemActive,
346
- ]}>
347
- <Text style={[
348
- styles.subTabText,
349
- selectedScheme === 'assembleDebug' && styles.subTabTextActive,
350
- ]}>
351
- 🛠 Debug (assembleDebug)
352
- </Text>
353
- </TouchableOpacity>
354
- </View>
96
+ <U disabled={E}activeOpacity={.7}onPress={()=>{L("light"),oe("assembleDebug")}}style={[o.subTabItem,F==="assembleDebug"&&o.subTabItemActive]}>
97
+ <T style={{flexDirection:"row",alignItems:"center",gap:5}}>
98
+ <Ge size={12}color={F==="assembleDebug"?e.white:e.grayText}/>
99
+ <C style={[o.subTabText,F==="assembleDebug"&&o.subTabTextActive]}>
100
+ Debug (assembleDebug)
101
+ </C>
102
+ </T>
103
+ </U>
104
+ </T>
355
105
 
356
106
 
357
- <TouchableOpacity disabled={isBuilding} activeOpacity={0.7} onPress={() => {
358
- triggerNativeHaptic('light');
359
- setIsCleanBuild(!isCleanBuild);
360
- }} style={styles.cleanRow}>
361
- <View style={[
362
- styles.checkboxBox,
363
- isCleanBuild && styles.checkboxBoxActive,
364
- ]}>
365
- {isCleanBuild && <CheckIcon size={11} color={AppColors.white}/>}
366
- </View>
367
- <Text style={styles.cleanLabel}>
368
- Clean build cache <Text style={styles.cleanCode}>(./gradlew clean)</Text>
369
- </Text>
370
- </TouchableOpacity>
107
+ <U disabled={E}activeOpacity={.7}onPress={()=>{L("light"),Ae(!W)}}style={o.cleanRow}>
108
+ <T style={[o.checkboxBox,W&&o.checkboxBoxActive]}>
109
+ {W&&<Se size={11}color={e.white}/>}
110
+ </T>
111
+ <C style={o.cleanLabel}>
112
+ Clean build cache <C style={o.cleanCode}>(./gradlew clean)</C>
113
+ </C>
114
+ </U>
371
115
 
372
116
 
373
- {isBuilding && (<View style={styles.progressContainer}>
374
- <View style={styles.progressTopRow}>
375
- <View style={styles.progressTaskGroup}>
376
- <ActivityIndicator size="small" color={AppColors.purple}/>
377
- <Text style={styles.progressTaskText} numberOfLines={1}>
378
- {buildStatus.currentTask || 'Executing Gradle tasks...'}
379
- </Text>
380
- </View>
381
- <Text style={styles.progressPercentageText}>
382
- {buildStatus.progress}%
383
- </Text>
384
- </View>
117
+ {E&&<T style={o.progressContainer}>
118
+ <T style={o.progressTopRow}>
119
+ <T style={o.progressTaskGroup}>
120
+ <Ce size="small"color={e.purple}/>
121
+ <C style={o.progressTaskText}numberOfLines={1}>
122
+ {R.currentTask||"Executing Gradle tasks..."}
123
+ </C>
124
+ </T>
125
+ <C style={o.progressPercentageText}>
126
+ {R.progress}%
127
+ </C>
128
+ </T>
385
129
 
386
130
 
387
- <View style={styles.progressBarTrack}>
388
- <Animated.View style={[
389
- styles.progressBarFill,
390
- {
391
- width: progressAnim.interpolate({
392
- inputRange: [0, 100],
393
- outputRange: ['5%', '100%'],
394
- }),
395
- },
396
- ]}/>
397
- </View>
398
- </View>)}
131
+ <T style={o.progressBarTrack}>
132
+ <Z.View style={[o.progressBarFill,{width:K.interpolate({inputRange:[0,100],outputRange:["5%","100%"]})}]}/>
133
+ </T>
134
+ </T>}
399
135
 
400
136
 
401
- {buildStatus.status === 'failed' && (<View style={styles.errorContainer}>
402
- <CircleXIcon size={13} color={AppColors.errorColor}/>
403
- <Text style={styles.errorText} numberOfLines={2}>
404
- {buildStatus.error || 'Build execution failed.'}
405
- </Text>
406
- </View>)}
137
+ {R.status==="failed"&&<T style={o.errorContainer}>
138
+ <Ie size={13}color={e.errorColor}/>
139
+ <C style={o.errorText}numberOfLines={2}>
140
+ {R.error||"Build execution failed."}
141
+ </C>
142
+ </T>}
407
143
 
408
144
 
409
- {((buildStatus.logs && buildStatus.logs.length > 0) || isBuilding) && (<View style={styles.consoleContainer}>
410
- <View style={styles.consoleHeaderRow}>
411
- <View style={{ flexDirection: 'row', alignItems: 'center', gap: 6 }}>
412
- <TerminalConsoleIcon color="#38BDF8" size={12}/>
413
- <Text style={styles.consoleHeaderTitle}>GRADLE VERBOSE OUTPUT</Text>
414
- </View>
415
- <TouchableOpacity activeOpacity={0.7} onPress={() => setShowVerboseLogs(!showVerboseLogs)} style={styles.consoleToggleBtn}>
416
- <Text style={styles.consoleToggleText}>
417
- {showVerboseLogs ? 'Hide Console' : 'Show Console'}
418
- </Text>
419
- </TouchableOpacity>
420
- </View>
145
+ {(R.logs&&R.logs.length>0||E)&&<T style={o.consoleContainer}>
146
+ <T style={o.consoleHeaderRow}>
147
+ <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
148
+ <Xe color="#38BDF8"size={12}/>
149
+ <C style={o.consoleHeaderTitle}>GRADLE VERBOSE OUTPUT</C>
150
+ </T>
151
+ <U activeOpacity={.7}onPress={()=>ve(!Q)}style={o.consoleToggleBtn}>
152
+ <C style={o.consoleToggleText}>
153
+ {Q?"Hide Console":"Show Console"}
154
+ </C>
155
+ </U>
156
+ </T>
421
157
 
422
- {showVerboseLogs && (<ScrollView ref={verboseScrollRef} style={styles.consoleLogBox} contentContainerStyle={styles.consoleLogContent} nestedScrollEnabled showsVerticalScrollIndicator>
423
- {buildStatus.logs && buildStatus.logs.length > 0 ? (buildStatus.logs.map((logLine, idx) => {
424
- let logColor = '#94A3B8';
425
- if (logLine.startsWith('> Task :'))
426
- logColor = '#38BDF8';
427
- else if (logLine.includes('BUILD SUCCESSFUL'))
428
- logColor = '#4ADE80';
429
- else if (logLine.includes('FAILURE') || logLine.includes('error:'))
430
- logColor = '#F87171';
431
- else if (logLine.includes('UP-TO-DATE'))
432
- logColor = '#A78BFA';
433
- return (<Text key={idx} style={[styles.consoleLogLine, { color: logColor }]}>
434
- {logLine}
435
- </Text>);
436
- })) : (<Text style={styles.consoleLogPlaceholder}>
158
+ {Q&&<Te ref={te}style={o.consoleLogBox}contentContainerStyle={o.consoleLogContent}nestedScrollEnabled showsVerticalScrollIndicator>
159
+ {R.logs&&R.logs.length>0?R.logs.map((k,V)=>{let B="#94A3B8";return k.startsWith("> Task :")?B="#38BDF8":k.includes("BUILD SUCCESSFUL")?B="#4ADE80":k.includes("FAILURE")||k.includes("error:")?B="#F87171":k.includes("UP-TO-DATE")&&(B="#A78BFA"),<C key={V}style={[o.consoleLogLine,{color:B}]}>
160
+ {k}
161
+ </C>}):<C style={o.consoleLogPlaceholder}>
437
162
  Waiting for Gradle daemon output...
438
- </Text>)}
439
- </ScrollView>)}
440
- </View>)}
163
+ </C>}
164
+ </Te>}
165
+ </T>}
441
166
 
442
167
 
443
- {isBuilding ? (<View style={styles.buildingActionsRow}>
444
- <View style={styles.buildingStatusPill}>
445
- <ActivityIndicator size="small" color={AppColors.purple}/>
446
- <Text style={styles.buildingStatusPillText} numberOfLines={1}>
447
- Building ({buildStatus.progress}%)
448
- </Text>
449
- </View>
168
+ {E?<T style={o.buildingActionsRow}>
169
+ <T style={o.buildingStatusPill}>
170
+ <Ce size="small"color={e.purple}/>
171
+ <C style={o.buildingStatusPillText}numberOfLines={1}>
172
+ Building ({R.progress}%)
173
+ </C>
174
+ </T>
450
175
 
451
- <TouchableScale onPress={handleStopBuild} style={styles.stopBtn}>
452
- <CircleXIcon size={13} color={AppColors.white}/>
453
- <Text style={styles.stopBtnText}>Stop Build</Text>
454
- </TouchableScale>
455
- </View>) : (<TouchableScale onPress={handleStartBuild} style={styles.generateBtn}>
456
- <View style={styles.ctaContentRow}>
457
- <SparkleIcon size={14} color={AppColors.white}/>
458
- <Text style={styles.generateBtnText}>
459
- {isCleanBuild ? 'Clean & Generate Build' : 'Generate Build'}
460
- </Text>
461
- </View>
462
- </TouchableScale>)}
463
- </View>
176
+ <Be onPress={Me}style={o.stopBtn}>
177
+ <Ie size={13}color={e.white}/>
178
+ <C style={o.stopBtnText}>Stop Build</C>
179
+ </Be>
180
+ </T>:<Be onPress={Oe}style={o.generateBtn}>
181
+ <T style={o.ctaContentRow}>
182
+ <Ne size={14}color={e.white}/>
183
+ <C style={o.generateBtnText}>
184
+ {W?"Clean & Generate Build":"Generate Build"}
185
+ </C>
186
+ </T>
187
+ </Be>}
188
+ </T>
464
189
 
465
190
 
466
- <View style={styles.footerNoteRow}>
467
- <InfoCircleIcon size={13} color={AppColors.grayTextWeak}/>
468
- <Text style={styles.footerNoteText}>
191
+ <T style={o.footerNoteRow}>
192
+ <$e size={13}color={e.grayTextWeak}/>
193
+ <C style={o.footerNoteText}>
469
194
  Ensure both Android devices are connected to the same Wi-Fi network.
470
- </Text>
471
- </View>
472
- </ScrollView>);
473
- };
474
- const styles = StyleSheet.create({
475
- scrollArea: {
476
- flex: 1,
477
- backgroundColor: AppColors.contentBg,
478
- },
479
- scrollContent: {
480
- padding: 12,
481
- gap: 12,
482
- paddingBottom: 100,
483
- },
484
- heroCard: {
485
- backgroundColor: AppColors.primaryLight,
486
- borderRadius: 14,
487
- borderWidth: 1,
488
- borderColor: AppColors.grayBorderSecondary,
489
- padding: 14,
490
- shadowColor: AppColors.black,
491
- shadowOpacity: 0.04,
492
- shadowRadius: 4,
493
- shadowOffset: { width: 0, height: 2 },
494
- elevation: 1,
495
- gap: 12,
496
- },
497
- heroHeader: {
498
- flexDirection: 'row',
499
- alignItems: 'center',
500
- gap: 10,
501
- },
502
- heroIconWrap: {
503
- width: 38,
504
- height: 38,
505
- borderRadius: 10,
506
- backgroundColor: AppColors.purple,
507
- alignItems: 'center',
508
- justifyContent: 'center',
509
- shadowColor: AppColors.purple,
510
- shadowOpacity: 0.25,
511
- shadowRadius: 4,
512
- shadowOffset: { width: 0, height: 2 },
513
- elevation: 2,
514
- },
515
- heroTitle: {
516
- fontFamily: AppFonts.interBold,
517
- fontSize: 15,
518
- color: AppColors.primaryBlack,
519
- letterSpacing: -0.2,
520
- },
521
- heroSubtitle: {
522
- fontFamily: AppFonts.interRegular,
523
- fontSize: 11.5,
524
- color: AppColors.grayText,
525
- marginTop: 1,
526
- },
527
- heroBadge: {
528
- flexDirection: 'row',
529
- alignItems: 'center',
530
- gap: 4,
531
- backgroundColor: `${AppColors.emerald500}18`,
532
- paddingHorizontal: 7,
533
- paddingVertical: 3,
534
- borderRadius: 6,
535
- },
536
- pulseDot: {
537
- width: 6,
538
- height: 6,
539
- borderRadius: 3,
540
- backgroundColor: AppColors.emerald500,
541
- },
542
- heroBadgeText: {
543
- fontFamily: AppFonts.interBold,
544
- fontSize: 9.5,
545
- color: AppColors.emerald500,
546
- },
547
- heroMetricsStrip: {
548
- flexDirection: 'row',
549
- alignItems: 'center',
550
- backgroundColor: AppColors.grayBackground,
551
- borderRadius: 10,
552
- paddingVertical: 8,
553
- paddingHorizontal: 10,
554
- },
555
- heroMetricItem: {
556
- flex: 1,
557
- alignItems: 'center',
558
- paddingHorizontal: 2,
559
- minWidth: 0,
560
- },
561
- heroMetricLabel: {
562
- fontFamily: AppFonts.interBold,
563
- fontSize: 8.5,
564
- color: AppColors.grayTextWeak,
565
- letterSpacing: 0.4,
566
- },
567
- heroMetricValue: {
568
- fontFamily: AppFonts.interBold,
569
- fontSize: 11,
570
- color: AppColors.primaryBlack,
571
- marginTop: 2,
572
- },
573
- heroMetricDivider: {
574
- width: 1,
575
- height: 20,
576
- backgroundColor: AppColors.dividerColor,
577
- },
578
- sectionCard: {
579
- backgroundColor: AppColors.primaryLight,
580
- borderRadius: 14,
581
- borderWidth: 1,
582
- borderColor: AppColors.grayBorderSecondary,
583
- padding: 14,
584
- shadowColor: AppColors.black,
585
- shadowOpacity: 0.03,
586
- shadowRadius: 3,
587
- shadowOffset: { width: 0, height: 1 },
588
- elevation: 1,
589
- gap: 12,
590
- },
591
- sectionHeaderRow: {
592
- flexDirection: 'row',
593
- alignItems: 'center',
594
- justifyContent: 'space-between',
595
- },
596
- sectionTitle: {
597
- fontFamily: AppFonts.interBold,
598
- fontSize: 10.5,
599
- color: AppColors.grayTextWeak,
600
- letterSpacing: 0.8,
601
- textTransform: 'uppercase',
602
- },
603
- refreshBtn: {
604
- flexDirection: 'row',
605
- alignItems: 'center',
606
- gap: 4,
607
- paddingHorizontal: 7,
608
- paddingVertical: 3,
609
- borderRadius: 6,
610
- backgroundColor: `${AppColors.purple}12`,
611
- },
612
- refreshBtnText: {
613
- fontFamily: AppFonts.interBold,
614
- fontSize: 10,
615
- color: AppColors.purple,
616
- },
617
- qrCenteredWrapper: {
618
- alignItems: 'center',
619
- justifyContent: 'center',
620
- backgroundColor: AppColors.grayBackground,
621
- padding: 12,
622
- borderRadius: 12,
623
- borderWidth: 1,
624
- borderColor: AppColors.grayBorderSecondary,
625
- },
626
- qrInnerFrame: {
627
- backgroundColor: AppColors.white,
628
- padding: 6,
629
- borderRadius: 8,
630
- },
631
- urlBox: {
632
- flexDirection: 'row',
633
- alignItems: 'center',
634
- backgroundColor: AppColors.grayBackground,
635
- borderRadius: 10,
636
- paddingLeft: 10,
637
- paddingRight: 6,
638
- paddingVertical: 6,
639
- borderWidth: 1,
640
- borderColor: AppColors.grayBorderSecondary,
641
- gap: 8,
642
- },
643
- urlText: {
644
- flex: 1,
645
- fontFamily: AppFonts.interMedium,
646
- fontSize: 11.5,
647
- color: AppColors.skyBlue,
648
- },
649
- actionsRow: {
650
- flexDirection: 'row',
651
- gap: 10,
652
- },
653
- actionBtnSecondary: {
654
- flex: 1,
655
- flexDirection: 'row',
656
- alignItems: 'center',
657
- justifyContent: 'center',
658
- gap: 6,
659
- paddingVertical: 9,
660
- borderRadius: 10,
661
- borderWidth: 1,
662
- borderColor: AppColors.grayBorderSecondary,
663
- backgroundColor: AppColors.grayBackground,
664
- },
665
- actionBtnSecondaryText: {
666
- fontFamily: AppFonts.interBold,
667
- fontSize: 12,
668
- color: AppColors.grayTextStrong,
669
- },
670
- actionBtnPrimary: {
671
- flex: 1,
672
- flexDirection: 'row',
673
- alignItems: 'center',
674
- justifyContent: 'center',
675
- gap: 6,
676
- paddingVertical: 9,
677
- borderRadius: 10,
678
- backgroundColor: AppColors.purple,
679
- shadowColor: AppColors.purple,
680
- shadowOpacity: 0.25,
681
- shadowRadius: 4,
682
- shadowOffset: { width: 0, height: 2 },
683
- elevation: 2,
684
- },
685
- actionBtnPrimaryText: {
686
- fontFamily: AppFonts.interBold,
687
- fontSize: 12,
688
- color: AppColors.white,
689
- },
690
- completedBadge: {
691
- flexDirection: 'row',
692
- alignItems: 'center',
693
- gap: 3,
694
- backgroundColor: `${AppColors.emerald500}18`,
695
- paddingHorizontal: 6,
696
- paddingVertical: 2,
697
- borderRadius: 5,
698
- },
699
- completedBadgeText: {
700
- fontFamily: AppFonts.interBold,
701
- fontSize: 9.5,
702
- color: AppColors.emerald500,
703
- },
704
- subTabStrip: {
705
- flexDirection: 'row',
706
- backgroundColor: AppColors.grayBackground,
707
- borderRadius: 8,
708
- padding: 2,
709
- borderWidth: 1,
710
- borderColor: AppColors.grayBorderSecondary,
711
- },
712
- subTabItem: {
713
- flex: 1,
714
- paddingVertical: 7,
715
- borderRadius: 6,
716
- alignItems: 'center',
717
- justifyContent: 'center',
718
- },
719
- subTabItemActive: {
720
- backgroundColor: AppColors.purple,
721
- shadowColor: AppColors.purple,
722
- shadowOpacity: 0.2,
723
- shadowRadius: 3,
724
- shadowOffset: { width: 0, height: 1 },
725
- elevation: 1,
726
- },
727
- subTabText: {
728
- fontFamily: AppFonts.interMedium,
729
- fontSize: 11,
730
- color: AppColors.grayText,
731
- },
732
- subTabTextActive: {
733
- fontFamily: AppFonts.interBold,
734
- color: AppColors.white,
735
- },
736
- cleanRow: {
737
- flexDirection: 'row',
738
- alignItems: 'center',
739
- gap: 8,
740
- paddingVertical: 2,
741
- },
742
- checkboxBox: {
743
- width: 18,
744
- height: 18,
745
- borderRadius: 4,
746
- borderWidth: 1.5,
747
- borderColor: AppColors.grayBorderSecondary,
748
- backgroundColor: AppColors.grayBackground,
749
- alignItems: 'center',
750
- justifyContent: 'center',
751
- },
752
- checkboxBoxActive: {
753
- backgroundColor: AppColors.purple,
754
- borderColor: AppColors.purple,
755
- },
756
- cleanLabel: {
757
- fontFamily: AppFonts.interMedium,
758
- fontSize: 11.5,
759
- color: AppColors.grayTextStrong,
760
- },
761
- cleanCode: {
762
- fontFamily: AppFonts.interRegular,
763
- color: AppColors.grayTextWeak,
764
- fontSize: 10.5,
765
- },
766
- progressContainer: {
767
- backgroundColor: AppColors.grayBackground,
768
- borderRadius: 10,
769
- padding: 10,
770
- gap: 6,
771
- borderWidth: 1,
772
- borderColor: AppColors.grayBorderSecondary,
773
- },
774
- progressTopRow: {
775
- flexDirection: 'row',
776
- alignItems: 'center',
777
- justifyContent: 'space-between',
778
- },
779
- progressTaskGroup: {
780
- flexDirection: 'row',
781
- alignItems: 'center',
782
- gap: 6,
783
- flex: 1,
784
- paddingRight: 8,
785
- },
786
- progressTaskText: {
787
- fontFamily: AppFonts.interMedium,
788
- fontSize: 11,
789
- color: AppColors.primaryBlack,
790
- flex: 1,
791
- },
792
- progressPercentageText: {
793
- fontFamily: AppFonts.interBold,
794
- fontSize: 11.5,
795
- color: AppColors.purple,
796
- },
797
- progressBarTrack: {
798
- width: '100%',
799
- height: 6,
800
- borderRadius: 3,
801
- backgroundColor: AppColors.grayBorderSecondary,
802
- overflow: 'hidden',
803
- },
804
- progressBarFill: {
805
- height: '100%',
806
- backgroundColor: AppColors.purple,
807
- borderRadius: 3,
808
- },
809
- errorContainer: {
810
- flexDirection: 'row',
811
- alignItems: 'center',
812
- gap: 6,
813
- backgroundColor: `${AppColors.errorColor}12`,
814
- padding: 8,
815
- borderRadius: 8,
816
- borderWidth: 1,
817
- borderColor: `${AppColors.errorColor}25`,
818
- },
819
- errorText: {
820
- fontFamily: AppFonts.interRegular,
821
- fontSize: 11,
822
- color: AppColors.errorColor,
823
- flex: 1,
824
- },
825
- consoleContainer: {
826
- backgroundColor: '#0F172A',
827
- borderRadius: 10,
828
- borderWidth: 1,
829
- borderColor: '#1E293B',
830
- overflow: 'hidden',
831
- marginTop: 4,
832
- },
833
- consoleHeaderRow: {
834
- flexDirection: 'row',
835
- alignItems: 'center',
836
- justifyContent: 'space-between',
837
- backgroundColor: '#1E293B',
838
- paddingHorizontal: 10,
839
- paddingVertical: 6,
840
- },
841
- consoleHeaderTitle: {
842
- fontFamily: AppFonts.interBold,
843
- fontSize: 10,
844
- color: '#38BDF8',
845
- letterSpacing: 0.5,
846
- },
847
- consoleToggleBtn: {
848
- paddingHorizontal: 6,
849
- paddingVertical: 2,
850
- borderRadius: 4,
851
- backgroundColor: 'rgba(255,255,255,0.1)',
852
- },
853
- consoleToggleText: {
854
- fontFamily: AppFonts.interMedium,
855
- fontSize: 9.5,
856
- color: '#94A3B8',
857
- },
858
- consoleLogBox: {
859
- maxHeight: 140,
860
- paddingHorizontal: 10,
861
- paddingVertical: 8,
862
- },
863
- consoleLogContent: {
864
- gap: 3,
865
- },
866
- consoleLogLine: {
867
- fontFamily: AppFonts.interRegular,
868
- fontSize: 10,
869
- lineHeight: 14,
870
- },
871
- consoleLogPlaceholder: {
872
- fontFamily: AppFonts.interRegular,
873
- fontSize: 10,
874
- color: '#64748B',
875
- fontStyle: 'italic',
876
- },
877
- generateBtn: {
878
- backgroundColor: AppColors.purple,
879
- borderRadius: 10,
880
- paddingVertical: 10,
881
- alignItems: 'center',
882
- justifyContent: 'center',
883
- shadowColor: AppColors.purple,
884
- shadowOpacity: 0.25,
885
- shadowRadius: 4,
886
- shadowOffset: { width: 0, height: 2 },
887
- elevation: 2,
888
- },
889
- generateBtnDisabled: {
890
- opacity: 0.7,
891
- },
892
- buildingActionsRow: {
893
- flexDirection: 'row',
894
- alignItems: 'center',
895
- gap: 10,
896
- },
897
- buildingStatusPill: {
898
- flex: 1,
899
- flexDirection: 'row',
900
- alignItems: 'center',
901
- justifyContent: 'center',
902
- gap: 8,
903
- backgroundColor: `${AppColors.purple}14`,
904
- borderRadius: 10,
905
- paddingVertical: 10,
906
- borderWidth: 1,
907
- borderColor: `${AppColors.purple}30`,
908
- },
909
- buildingStatusPillText: {
910
- fontFamily: AppFonts.interBold,
911
- fontSize: 12,
912
- color: AppColors.purple,
913
- },
914
- stopBtn: {
915
- flexDirection: 'row',
916
- alignItems: 'center',
917
- justifyContent: 'center',
918
- gap: 6,
919
- backgroundColor: AppColors.errorColor,
920
- borderRadius: 10,
921
- paddingHorizontal: 16,
922
- paddingVertical: 10,
923
- shadowColor: AppColors.errorColor,
924
- shadowOpacity: 0.25,
925
- shadowRadius: 4,
926
- shadowOffset: { width: 0, height: 2 },
927
- elevation: 2,
928
- },
929
- stopBtnText: {
930
- fontFamily: AppFonts.interBold,
931
- fontSize: 12,
932
- color: AppColors.white,
933
- },
934
- ctaContentRow: {
935
- flexDirection: 'row',
936
- alignItems: 'center',
937
- gap: 6,
938
- },
939
- generateBtnText: {
940
- fontFamily: AppFonts.interBold,
941
- fontSize: 12.5,
942
- color: AppColors.white,
943
- },
944
- footerNoteRow: {
945
- flexDirection: 'row',
946
- alignItems: 'center',
947
- gap: 6,
948
- paddingHorizontal: 8,
949
- },
950
- footerNoteText: {
951
- fontFamily: AppFonts.interRegular,
952
- fontSize: 11,
953
- color: AppColors.grayTextWeak,
954
- textAlign: 'center',
955
- flex: 1,
956
- },
957
- });
958
- export default DebuggingTab;
195
+ </C>
196
+ </T>
197
+ </Te>};const o=We.create({scrollArea:{flex:1,backgroundColor:e.contentBg},scrollContent:{padding:12,gap:12,paddingBottom:100},heroCard:{backgroundColor:e.primaryLight,borderRadius:14,borderWidth:1,borderColor:e.grayBorderSecondary,padding:14,shadowColor:e.black,shadowOpacity:.04,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:1,gap:12},heroHeader:{flexDirection:"row",alignItems:"center",gap:10},heroIconWrap:{width:38,height:38,borderRadius:10,backgroundColor:e.purple,alignItems:"center",justifyContent:"center",shadowColor:e.purple,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},heroTitle:{fontFamily:S.interBold,fontSize:15,color:e.primaryBlack,letterSpacing:-.2},heroSubtitle:{fontFamily:S.interRegular,fontSize:11.5,color:e.grayText,marginTop:1},heroBadge:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${e.emerald500}18`,paddingHorizontal:7,paddingVertical:3,borderRadius:6},pulseDot:{width:6,height:6,borderRadius:3,backgroundColor:e.emerald500},heroBadgeText:{fontFamily:S.interBold,fontSize:9.5,color:e.emerald500},heroMetricsStrip:{flexDirection:"row",alignItems:"center",backgroundColor:e.grayBackground,borderRadius:10,paddingVertical:8,paddingHorizontal:10},heroMetricItem:{flex:1,alignItems:"center",paddingHorizontal:2,minWidth:0},heroMetricLabel:{fontFamily:S.interBold,fontSize:8.5,color:e.grayTextWeak,letterSpacing:.4},heroMetricValue:{fontFamily:S.interBold,fontSize:11,color:e.primaryBlack,marginTop:2},heroMetricDivider:{width:1,height:20,backgroundColor:e.dividerColor},sectionCard:{backgroundColor:e.primaryLight,borderRadius:14,borderWidth:1,borderColor:e.grayBorderSecondary,padding:14,shadowColor:e.black,shadowOpacity:.03,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:1,gap:12},sectionHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},sectionTitle:{fontFamily:S.interBold,fontSize:10.5,color:e.grayTextWeak,letterSpacing:.8,textTransform:"uppercase"},refreshBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:3,borderRadius:6,backgroundColor:`${e.purple}12`},refreshBtnText:{fontFamily:S.interBold,fontSize:10,color:e.purple},qrCenteredWrapper:{alignItems:"center",justifyContent:"center",backgroundColor:e.grayBackground,padding:12,borderRadius:12,borderWidth:1,borderColor:e.grayBorderSecondary},qrInnerFrame:{backgroundColor:e.white,padding:6,borderRadius:8},urlBox:{flexDirection:"row",alignItems:"center",backgroundColor:e.grayBackground,borderRadius:10,paddingLeft:10,paddingRight:6,paddingVertical:6,borderWidth:1,borderColor:e.grayBorderSecondary,gap:8},urlText:{flex:1,fontFamily:S.interMedium,fontSize:11.5,color:e.skyBlue},actionsRow:{flexDirection:"row",gap:10},actionBtnSecondary:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,paddingVertical:9,borderRadius:10,borderWidth:1,borderColor:e.grayBorderSecondary,backgroundColor:e.grayBackground},actionBtnSecondaryText:{fontFamily:S.interBold,fontSize:12,color:e.grayTextStrong},actionBtnPrimary:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,paddingVertical:9,borderRadius:10,backgroundColor:e.purple,shadowColor:e.purple,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},actionBtnPrimaryText:{fontFamily:S.interBold,fontSize:12,color:e.white},completedBadge:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:`${e.emerald500}18`,paddingHorizontal:6,paddingVertical:2,borderRadius:5},completedBadgeText:{fontFamily:S.interBold,fontSize:9.5,color:e.emerald500},subTabStrip:{flexDirection:"row",backgroundColor:e.grayBackground,borderRadius:8,padding:2,borderWidth:1,borderColor:e.grayBorderSecondary},subTabItem:{flex:1,paddingVertical:7,borderRadius:6,alignItems:"center",justifyContent:"center"},subTabItemActive:{backgroundColor:e.purple,shadowColor:e.purple,shadowOpacity:.2,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:1},subTabText:{fontFamily:S.interMedium,fontSize:11,color:e.grayText},subTabTextActive:{fontFamily:S.interBold,color:e.white},cleanRow:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:2},checkboxBox:{width:18,height:18,borderRadius:4,borderWidth:1.5,borderColor:e.grayBorderSecondary,backgroundColor:e.grayBackground,alignItems:"center",justifyContent:"center"},checkboxBoxActive:{backgroundColor:e.purple,borderColor:e.purple},cleanLabel:{fontFamily:S.interMedium,fontSize:11.5,color:e.grayTextStrong},cleanCode:{fontFamily:S.interRegular,color:e.grayTextWeak,fontSize:10.5},progressContainer:{backgroundColor:e.grayBackground,borderRadius:10,padding:10,gap:6,borderWidth:1,borderColor:e.grayBorderSecondary},progressTopRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},progressTaskGroup:{flexDirection:"row",alignItems:"center",gap:6,flex:1,paddingRight:8},progressTaskText:{fontFamily:S.interMedium,fontSize:11,color:e.primaryBlack,flex:1},progressPercentageText:{fontFamily:S.interBold,fontSize:11.5,color:e.purple},progressBarTrack:{width:"100%",height:6,borderRadius:3,backgroundColor:e.grayBorderSecondary,overflow:"hidden"},progressBarFill:{height:"100%",backgroundColor:e.purple,borderRadius:3},errorContainer:{flexDirection:"row",alignItems:"center",gap:6,backgroundColor:`${e.errorColor}12`,padding:8,borderRadius:8,borderWidth:1,borderColor:`${e.errorColor}25`},errorText:{fontFamily:S.interRegular,fontSize:11,color:e.errorColor,flex:1},consoleContainer:{backgroundColor:"#0F172A",borderRadius:10,borderWidth:1,borderColor:"#1E293B",overflow:"hidden",marginTop:4},consoleHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:"#1E293B",paddingHorizontal:10,paddingVertical:6},consoleHeaderTitle:{fontFamily:S.interBold,fontSize:10,color:"#38BDF8",letterSpacing:.5},consoleToggleBtn:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,backgroundColor:"rgba(255,255,255,0.1)"},consoleToggleText:{fontFamily:S.interMedium,fontSize:9.5,color:"#94A3B8"},consoleLogBox:{maxHeight:140,paddingHorizontal:10,paddingVertical:8},consoleLogContent:{gap:3},consoleLogLine:{fontFamily:S.interRegular,fontSize:10,lineHeight:14},consoleLogPlaceholder:{fontFamily:S.interRegular,fontSize:10,color:"#64748B",fontStyle:"italic"},generateBtn:{backgroundColor:e.purple,borderRadius:10,paddingVertical:10,alignItems:"center",justifyContent:"center",shadowColor:e.purple,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},generateBtnDisabled:{opacity:.7},buildingActionsRow:{flexDirection:"row",alignItems:"center",gap:10},buildingStatusPill:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,backgroundColor:`${e.purple}14`,borderRadius:10,paddingVertical:10,borderWidth:1,borderColor:`${e.purple}30`},buildingStatusPillText:{fontFamily:S.interBold,fontSize:12,color:e.purple},stopBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:e.errorColor,borderRadius:10,paddingHorizontal:16,paddingVertical:10,shadowColor:e.errorColor,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},stopBtnText:{fontFamily:S.interBold,fontSize:12,color:e.white},ctaContentRow:{flexDirection:"row",alignItems:"center",gap:6},generateBtnText:{fontFamily:S.interBold,fontSize:12.5,color:e.white},footerNoteRow:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:8},footerNoteText:{fontFamily:S.interRegular,fontSize:11,color:e.grayTextWeak,textAlign:"center",flex:1}});export default DebuggingTab;